Skip to content

Instantly share code, notes, and snippets.

Created Sep 15, 2016

What would you like to do?
import requests
import urllib
import hashlib
import hmac
import time
key = '先ほど取得したkey'
secret = '先ほど取得したsecret'
trade_url = ''
nonce = time.time()
method = 'get_info'
payload = {'nonce': str(nonce), 'method': method}
headers = {'key': key, 'sign':, urllib.urlencode(payload), hashlib.sha512).hexdigest()}
print, data=urllib.urlencode(payload), headers=headers, timeout=3).json()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.