コード例 #1
0
ファイル: swap_pnl.py プロジェクト: mplanes/bfx_swap
def load_payments():
    bfx = Bitfinex()
    data = bfx.swapPaymentsHistory()
    for e in sorted(data, key=lambda x: x['timestamp']):
        payments.append((int(float(e['timestamp'])), float(e['amount'])))
コード例 #2
0
ファイル: swap_pnl.py プロジェクト: mplanes/bfx_swap
def load_open_loans():
    bfx = Bitfinex()
    bfx_current_loans = bfx.getSwaps()
    for l in bfx_current_loans:
        current_loans.append(l)