BTCMarkets / API

API
120 stars 30 forks source link

Parse JSON returns #180

Closed KieranMills closed 4 years ago

KieranMills commented 4 years ago

path: /market/BTC/AUD/tick returns {"bestBid":844.0,"bestAsk":844.98,"lastPrice":845.0,"currency":"AUD","instrument":"BTC","timestamp":1476242958,"volume24h":172.60804}

Maybe good idea in future to parse the JSON with PYTHON? if this exists already? Thanks

KieranMills commented 4 years ago

I think I've just figured out it returns as a dict so there is no problem.

martin-nginio commented 4 years ago

Hi @KieranMills

Thanks for your feedback and I'm glad you figured it out.

Please also note that we have a new version of the trading API (v3) as per below: https://api.btcmarkets.net/doc/v3/#tag/Market-data-APIs/paths/~1v3~1markets~1{marketId}~1ticker/get

Regards, Martin

KieranMills commented 4 years ago

Thanks very much martin! Im sure i will run into some more problems soon :).

On Sat, 18 Jan 2020 at 1:33 pm, martin-nginio notifications@github.com wrote:

Hi @KieranMills https://github.com/KieranMills

Thanks for your feedback and I'm glad you figured it out.

Please also note that we have a new version of the trading API (v3) as per below:

https://api.btcmarkets.net/doc/v3/#tag/Market-data-APIs/paths/~1v3~1markets~1{marketId}~1ticker/get

Regards, Martin

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BTCMarkets/API/issues/180?email_source=notifications&email_token=AKU7XWMY6NGXZU2EAL363TLQ6KICXA5CNFSM4KIQYR22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJJQ7TY#issuecomment-575868879, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKU7XWP4L7B7JO33QSB236TQ6KICXANCNFSM4KIQYR2Q .