This repository was archived by the owner on Mar 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 formatTime ,
1616 strfage ,
1717)
18- from steem .steem import Steem , Post , SteemConnector , Amount
18+ from steem .steem import Steem , SteemConnector
19+ from steem .amount import Amount
20+ from steem .post import Post
21+ from steem .dex import Dex
1922import frontmatter
2023import time
2124from prettytable import PrettyTable
@@ -1748,7 +1751,8 @@ def main() :
17481751 except :
17491752 print ("To use --chart, you need gnuplot and gnuplot-py installed" )
17501753 sys .exit (1 )
1751- orderbook = steem .dex ().returnOrderBook ()
1754+ dex = Dex (steem )
1755+ orderbook = dex .returnOrderBook ()
17521756
17531757 if args .chart :
17541758 g = Gnuplot .Gnuplot ()
@@ -1801,7 +1805,8 @@ def main() :
18011805 price = 1.0 / args .price
18021806 else :
18031807 price = args .price
1804- pprint (steem .buy (
1808+ dex = Dex (steem )
1809+ pprint (dex .buy (
18051810 args .amount ,
18061811 args .asset ,
18071812 price ,
@@ -1813,7 +1818,8 @@ def main() :
18131818 price = 1.0 / args .price
18141819 else :
18151820 price = args .price
1816- pprint (steem .sell (
1821+ dex = Dex (steem )
1822+ pprint (dex .sell (
18171823 args .amount ,
18181824 args .asset ,
18191825 price ,
You can’t perform that action at this time.
0 commit comments