Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. oldsell = tsell
  2. oldbuy = tbuy
  3. oldlast = tlast
  4. tsell = str(float(data['ticker']['sell']))
  5. tbuy = str(float(data['ticker']['buy']))
  6. tlast = str(float(data['ticker']['last']))
  7.  
  8. if ((oldsell != tsell) | (oldbuy != tbuy) | (oldlast != tlast)):
  9. buildline = 'Current Market Data: [Buy: ' + tbuy + '] [Sell: ' + tsell + '] [Last: ' + tlast + ']'
  10. print buildline
  11. conn.privmsg(channel, buildline)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement