You are viewing a single comment's thread from:

RE: Post Promoter JavaScript Voting Bot - Update 4

in #utopian-io8 years ago

Well done and thanks for the update!
Great you got the SBD & STEEM conversion for the bids taken into account. For the price feed, any reason you decided to not go with the rate via the internal market? Curious, in case you found it unreliable.

Sort:  

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!

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')```