You are viewing a single comment's thread from:

RE: Post Promoter JavaScript Voting Bot - Update 4

in #utopian-io8 years ago

Glad you like it! I didn't even think to use the internal market lol...not sure how to do that, I guess I would use the steem.api.getOrderBook() call? Either way it was super simple to use the coinmarketcap.com API so I went with that!

Sort:  

I use the get_ticker call and use the returned value for 'latest' tick.
See below the API call used in steem-python.

def get_ticker(self):
        """Returns the market ticker for the internal SBD:STEEM market."""
        return self.exec('get_ticker', api='market_history_api')```