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.
17 lines
409 B
17 lines
409 B
from huobi.client.margin import MarginClient
|
|
from huobi.constant import *
|
|
from huobi.utils import *
|
|
|
|
|
|
margin_client = MarginClient(api_key=g_api_key, secret_key=g_secret_key)
|
|
|
|
# no filter
|
|
list_obj = margin_client.get_cross_margin_loan_orders()
|
|
LogInfo.output_list(list_obj)
|
|
|
|
# filter by state
|
|
list_obj = margin_client.get_cross_margin_loan_orders(state=LoanOrderState.ACCRUAL)
|
|
LogInfo.output_list(list_obj)
|
|
|
|
|