You are viewing a single comment's thread from:

RE: Coogger Updates - Comment Section Improved | Embed for Detail and Reply Page | Supporters Page | V1.4-beta.0

in #coogger6 years ago

Test @execute-python

from koinim import Ltc, Btc

try_to_ltc = Ltc().try_to_ltc(try_amount=100)
bids = [bids.__dict__ for bids in Ltc().OrderBook().bids()]
print(f"sell rate : {Ltc().sell}")
print(f"try_to_ltc : {try_to_ltc}")

### bids 

print(bids)
Sort:  

Your python code\nfrom koinim import Ltc, Btc

try_to_ltc = Ltc().try_to_ltc(try_amount=100)
bids = [bids.dict for bids in Ltc().OrderBook().bids()]
print(f"sell rate : {Ltc().sell}")
print(f"try_to_ltc : {try_to_ltc}")

bids

print(bids)
\n\n#### Execute your python code\n\n\nsell rate : 271.0 try_to_ltc : 0.3597122302158273 [{'price': 271.0, 'total': 1231.17, 'amount': 4.54303151}, {'price': 270.01, 'total': 540.02, 'amount': 2.0}, {'price': 269.1, 'total': 4867.89, 'amount': 18.08949241}, {'price': 268.11, 'total': 600.15, 'amount': 2.23844601}, {'price': 267.01, 'total': 718.28, 'amount': 2.69008156}, {'price': 266.05, 'total': 1992.01, 'amount': 7.48735185}, {'price': 266.0, 'total': 30378.01, 'amount': 114.20304496}, {'price': 265.85, 'total': 3148.63, 'amount': 11.84359679}, {'price': 265.0, 'total': 9960.08, 'amount': 37.58520633}, {'price': 263.3, 'total': 2633.0, 'amount': 10.0}, {'price': 261.01, 'total': 49820.13, 'amount': 190.87440772}, {'price': 261.0, 'total': 996.0, 'amount': 3.81609195}, {'price': 260.0, 'total': 80343.0, 'amount': 309.0115246}, {'price': 256.0, 'total': 256.0, 'amount': 1.0}, {'price': 251.6, 'total': 885.64, 'amount': 3.52}, {'price': 250.99, 'total': 9.5, 'amount': 0.03785011}, {'price': 250.98, 'total': 9.47, 'amount': 0.03773209}, {'price': 250.0, 'total': 1018.61, 'amount': 4.07441716}, {'price': 247.0, 'total': 5.9, 'amount': 0.02388405}, {'price': 240.0, 'total': 422.41, 'amount': 1.7600415}, {'price': 230.0, 'total': 996.01, 'amount': 4.33047808}, {'price': 204.62, 'total': 19922.08, 'amount': 97.36131209}, {'price': 200.99, 'total': 9.61, 'amount': 0.04781332}, {'price': 184.1, 'total': 4622.76, 'amount': 25.1100202}, {'price': 169.0, 'total': 42.25, 'amount': 0.25}, {'price': 165.0, 'total': 2.08, 'amount': 0.01260606}, {'price': 160.0, 'total': 39.38, 'amount': 0.246125}, {'price': 150.99, 'total': 10.22, 'amount': 0.0676866}, {'price': 110.0, 'total': 55.0, 'amount': 0.5}, {'price': 100.99, 'total': 9.84, 'amount': 0.09743538}, {'price': 99.5, 'total': 99.0, 'amount': 0.99497487}, {'price': 95.86, 'total': 99.5, 'amount': 1.03797204}, {'price': 86.5, 'total': 85.82, 'amount': 0.99213872}, {'price': 75.5, 'total': 75.5, 'amount': 1.0}, {'price': 50.99, 'total': 9.97, 'amount': 0.19552853}, {'price': 37.5, 'total': 112.5, 'amount': 3.0}, {'price': 33.33, 'total': 4.5, 'amount': 0.1350135}, {'price': 31.0, 'total': 31.08, 'amount': 1.00239814}, {'price': 27.97, 'total': 5.06, 'amount': 0.18067671}, {'price': 22.01, 'total': 330.15, 'amount': 15.0}, {'price': 21.0, 'total': 63.0, 'amount': 3.0}, {'price': 20.0, 'total': 18.0, 'amount': 0.9}, {'price': 13.66, 'total': 13.16, 'amount': 0.96339677}, {'price': 12.0, 'total': 36.0, 'amount': 3.0}, {'price': 10.0, 'total': 28.37, 'amount': 2.83631924}, {'price': 9.5, 'total': 9.5, 'amount': 1.0}, {'price': 9.0, 'total': 27.0, 'amount': 3.0}, {'price': 6.59, 'total': 6.09, 'amount': 0.92412746}, {'price': 6.0, 'total': 14.26, 'amount': 2.37666666}, {'price': 5.64, 'total': 5.08, 'amount': 0.9}, {'price': 5.0, 'total': 26.0, 'amount': 5.2}, {'price': 3.65, 'total': 3.15, 'amount': 0.86301369}, {'price': 3.54, 'total': 11.8, 'amount': 3.33333333}, {'price': 2.5, 'total': 50.0, 'amount': 20.0}, {'price': 2.0, 'total': 1.5, 'amount': 0.75}, {'price': 1.81, 'total': 1.27, 'amount': 0.7}, {'price': 1.5, 'total': 1.5, 'amount': 1.0}, {'price': 1.2, 'total': 2.4, 'amount': 2.0}, {'price': 1.01, 'total': 30.3, 'amount': 30.0}, {'price': 1.0, 'total': 102.93, 'amount': 102.93}, {'price': 0.9, 'total': 9.0, 'amount': 10.0}, {'price': 0.5, 'total': 23.21, 'amount': 46.40989898}, {'price': 0.44, 'total': 1.32, 'amount': 3.0}, {'price': 0.4, 'total': 7.56, 'amount': 18.89999999}, {'price': 0.1, 'total': 20.65, 'amount': 206.5}, {'price': 0.09, 'total': 9.0, 'amount': 100.0}, {'price': 0.07, 'total': 7.0, 'amount': 100.0}, {'price': 0.05, 'total': 5.63, 'amount': 112.6}, {'price': 0.04, 'total': 40.0, 'amount': 1000.0}, {'price': 0.03, 'total': 1.5, 'amount': 50.0}, {'price': 0.01, 'total': 43.48, 'amount': 4347.99999999}] ['__class__', '__del__', '__delattr__', '__dict__', '__dir__', '__doc__', '__enter__', '__eq__', '__exit__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__lt__', '__ne__', '__new__', '__next__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', '__subclasshook__', '_checkClosed', '_checkReadable', '_checkSeekable', '_checkWritable', 'close', 'closed', 'detach', 'encoding', 'errors', 'fileno', 'flush', 'getvalue', 'isatty', 'line_buffering', 'newlines', 'read', 'readable', 'readline', 'readlines', 'seek', 'seekable', 'tell', 'truncate', 'writable', 'write', 'writelines'] \n\n\n---------\n


If you found this comment useful, please consider upvoting it to help keep this execute python bot running.
Made by @hakancelik