Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# -*- coding: utf-8 -*-
import os
import sys
# -----------------------------------------------------------------------------
this_folder = os.path.dirname(os.path.abspath(__file__))
root_folder = os.path.dirname(os.path.dirname(this_folder))
sys.path.append(root_folder + '/python')
sys.path.append(this_folder)
# -----------------------------------------------------------------------------
import ccxt # noqa: E402
# -----------------------------------------------------------------------------
exchange = ccxt.blockbid({'apiKey': "ba", 'secret': "d8aOA=="})
symbol = 'ETH/BTC'
def print_chart(exchange, symbol, timeframe):
ohlcv = exchange.create_order(symbol='BTC/TUSD', type='limit', side='buy', amount='0.000001', price='0.000001')
print("order_info")
return ohlcv
last = print_chart(exchange, symbol, '1m')
print(last) # print last closing price
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.