· 9 years ago · Dec 12, 2016, 06:08 PM
1#!/usr/bin/python
2
3import sys,json,time
4from OkcoinFutureAPI import OKCoinFuture # Make sure OkcoinFutureAPI.py is in folder, from https://github.com/OKCoin/rest/blob/master/python/OkcoinFutureAPI.py
5
6#apikey,secretkey,url
7apikey = 'xxxxxxxxxx' #Fill this out
8secretkey = "yyyyyyyyyyyy" # And fill this out
9okcoinRESTURL = 'www.okcoin.com'
10
11okcoinFuture = OKCoinFuture(okcoinRESTURL,apikey,secretkey)
12
13print (okcoinFuture.future_userinfo_4fix())