Open FutureSharks opened 7 years ago
I think it's a bit silly that numbers like floats and integers are returned as strings:
>>> import v20 >>> api = v20.Context(hostname='api-fxpractice.oanda.com', token='xxx', datetime_format='UNIX') >>> api.pricing.get(accountID='101-xxxx', instruments='GBP_USD').get('prices')[0].dict()['bids'][0]['price'] '1.28662' >>> api.pricing.get(accountID='101-xxxx', instruments='GBP_USD').get('prices')[0].dict()['time'] '1503089998.464826588' >>>
Is there a reason for that?
I think it's a bit silly that numbers like floats and integers are returned as strings:
Is there a reason for that?