#!/usr/local/bin/python3
import json
import requests
import urllib.parse
last = requests.get('https://api.quoine.com/products/50').json()['last_traded_price']
ask = requests.get('https://api.quoine.com/products/50').json()['market_ask']
bid = requests.get('https://api.quoine.com/products/50').json()['market_bid']
print("last:", last, "ask:", ask, "bid:", bid)
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme