Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error: TypeError: coercing to Unicode: need string or buffer, float found
- supposed to print the price if greater than the price + 0.2
- public_client = gdax.PublicClient()
- x = public_client.get_product_ticker(product_id='ETC-USD')
- print x['bid']
- time.sleep(20)
- y = public_client.get_product_ticker(product_id='ETC-USD')
- #if x['bid'] >= y['bid']:
- if x['bid'] >= y['bid'] + (0.2):
- print x['bid']
- else:
- print ('x isn't greater than y + 0.2')
- print y['bid']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement