Skip to content

Instantly share code, notes, and snippets.

@carlok
Created September 27, 2021 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlok/ea134fe72b8e3f70d37a6d6089f00b6b to your computer and use it in GitHub Desktop.
Save carlok/ea134fe72b8e3f70d37a6d6089f00b6b to your computer and use it in GitHub Desktop.
Binance repay margin loan
from binance.client import Client
api_key = 'your_api_key'
api_secret = 'your_api_secret'
asset = 'USDT'
amount = '1000' # example value as string
client = Client(api_key, api_secret)
transaction = client.repay_margin_loan(asset=asset, amount=amount)
print(transaction)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment