I've noticed, even when subscribing to the margin user socket stream, that outboundAccountPosition events only include 'a' 'f' and 'l' fields (for asset, free, and locked respectively). However, I need to know how much was borrowed, and how much interest is owed on each asset too in order for the bot to pay back the entire loan. The get_margin_account() request however does return these fields ({'asset': 'LINK', 'free': '0', 'locked': '0', 'borrowed': '0', 'interest': '0', 'netAsset': '0'}), but this is a one time get request (not a websocket).
Thanks!
I think you have to check borrowed amount from API. Websocket data is minimized to have only changed data.
When borrowed amount changes, a response comes only once.
I've noticed, even when subscribing to the margin user socket stream, that outboundAccountPosition events only include 'a' 'f' and 'l' fields (for asset, free, and locked respectively). However, I need to know how much was borrowed, and how much interest is owed on each asset too in order for the bot to pay back the entire loan. The get_margin_account() request however does return these fields (
{'asset': 'LINK', 'free': '0', 'locked': '0', 'borrowed': '0', 'interest': '0', 'netAsset': '0'}
), but this is a one time get request (not a websocket). Thanks!