Choose between Isolated Or Cross on Margin trading
See original GitHub issueHi, I would like to know if it is possible to deal with isolated margin trading ? I have no problem accessing my (cross) margin Assets with this snippet:
var accountMarginResult = client.GetMarginAccountInfo(); if (accountMarginResult.Success) MarginAssets = new ObservableCollection<ViewModelAsset>(accountMarginResult.Data.Balances .Where(b => b.Free != 0 || b.Locked != 0).Select(b => new ViewModelAsset { Asset = b.Asset, Free = b.Free, Locked = b.Locked }).ToList());
But I cannot find how to deal with my Isolated Margin Assets.
And I would have the same question to place an order, it works fine with “client.PlaceMarginOrder()” but I don’t know how I could place an order on an isolated margin pair.
Thanks again for this awesome work
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Sad to hear you didn’t get it working. I was kinda doubting it would, since authentication for requests using the website is probably done different than authentication using the API. I think the best thing is just to wait support in the API instead of trying to break into their website authentication 😉
Hopefully it won’t take too long on their end!
Hi, the SendRequest method has an additional parameter;
signed
. Try setting it to true for authenticated requests. I’m not sure if it will work though.