You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grid_trader/example/trade/post_transfer_futures_pro.py

17 lines
666 B

from huobi.client.trade import TradeClient
from huobi.constant import *
from huobi.utils import LogInfo
trade_client = TradeClient(api_key=g_api_key, secret_key=g_secret_key)
currency_test = "trx"
trans_id_one = trade_client.transfer_between_futures_and_pro(amount=400, currency=currency_test,
transfer_type=TransferFuturesPro.TO_FUTURES)
LogInfo.output(trans_id_one)
trans_id_two = trade_client.transfer_between_futures_and_pro(amount=400, currency=currency_test,
transfer_type=TransferFuturesPro.TO_PRO)
LogInfo.output(trans_id_two)