huobi = Huobi('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
# Place limit order
limit_order_response = huobi.place_order(
amount=101,
symbol='trxusdt',
price=0.05,
type='buy-limit'
)
ftx = FTX('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
# Place stop loss order:
ftx.place_trigger_order(
market="ETH/USDT",
side='sell',
size=1.2,
type='stop',
triggerPrice=100,
)
ftx = FTX('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
# Get positions list
ftx.get_positions()
# Get account information
ftx.get_account_information()
# Get account balances list
ftx.get_balances()