Skip to content

Instantly share code, notes, and snippets.

@buddies2705
Created June 10, 2020 02:04
Show Gist options
  • Save buddies2705/d210abc31dae3453b2bb97083665b639 to your computer and use it in GitHub Desktop.
Save buddies2705/d210abc31dae3453b2bb97083665b639 to your computer and use it in GitHub Desktop.
Get bitFlyer Markets
import requests
import json
API_ENDPOINT = 'https://api.bitflyer.com'
def convetStrToJson(str):
return json.loads(str)
def getMarkets():
url = API_ENDPOINT + '/v1/markets'
response = requests.get(url)
response = convetStrToJson(response.text)
print(response)
return response
getMarkets()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment