Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 598 Bytes

File metadata and controls

20 lines (17 loc) · 598 Bytes

Timeout

from binance_common.configuration import ConfigurationRestAPI
from binance_sdk_crypto_loan.crypto_loan import CryptoLoan
from binance_sdk_crypto_loan.rest_api.models import GetFlexibleLoanBorrowHistoryResponse

configuration = ConfigurationRestAPI(
    api_key="your-api-key",
    api_secret="your-api-secret"
)
client =  CryptoLoan(config_rest_api=configuration)

try:
    response = client.rest_api.get_flexible_loan_borrow_history()
    data: GetFlexibleLoanBorrowHistoryResponse = response.data()
    print(data)
except Exception as e:
    logging.error(f"error: {e}")