Skip to content

Instantly share code, notes, and snippets.

@juiCYMod juiCYMod/

Last active Mar 16, 2018
What would you like to do?
from zaifapi import ZaifLeverageTradeApi
import datetime
import time
import json
import pandas as pd
kara = datetime.datetime(2018, 3, 16, 0, 0, 0)
made = datetime.datetime(2018, 3, 16, 23, 59, 59)
unix = time.mktime(kara.timetuple())
unixz = time.mktime(made.timetuple())
zaif = ZaifLeverageTradeApi("YOUR_API_KEY","YOUR_API_SECRET")
gp = zaif.get_positions(type="futures",group_id=1,since=int(unix),end=int(unixz))
frame = pd.DataFrame(gp)
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.