question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Choose between Isolated Or Cross on Margin trading

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JKorfcommented, Jul 20, 2020

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!

1reaction
JKorfcommented, Jul 18, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cross Margins, Isolated Margins, and the Advantages of ...
Cross margin allows for the sharing of margin balances across multiple positions, while an isolated margin is assigned to a single position, ...
Read more >
Cross Margin vs Isolated Margin — Which is Better?
While in cross margin mechanism, although all your balance will be included, the margin ratio is much higher than that in isolated margin,...
Read more >
Isolated and Cross Margin
Cross Margin: Margin is shared between open positions with the same settlement cryptocurrency. When needed, a position will draw more margin from the...
Read more >
Cross Margin and Isolated Margin in Trading
Cross margin involves margin that is shared between open positions. Isolated margin, on the other hand, is margin assigned to a single position...
Read more >
Cross Margin vs Isolated Margin | Beginner's Guide 2023
Cross margin is suitable for novice traders or traders seeking to hedge existing positions but can increase the likelihood of entire balance loss....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found