Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oldsell = tsell
- oldbuy = tbuy
- oldlast = tlast
- tsell = str(float(data['ticker']['sell']))
- tbuy = str(float(data['ticker']['buy']))
- tlast = str(float(data['ticker']['last']))
- if ((oldsell != tsell) | (oldbuy != tbuy) | (oldlast != tlast)):
- buildline = 'Current Market Data: [Buy: ' + tbuy + '] [Sell: ' + tsell + '] [Last: ' + tlast + ']'
- print buildline
- conn.privmsg(channel, buildline)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement