Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Margin trading support, #184

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ArnonSpam
Copy link

including Isolated buy sell , market buy, query max borrow and calculating the purchase power.
additional close positions (sell and put)

Overview

Solved Issues

N/A

Installation

N/A

Acceptance and Testing Steps

  • Is it compatible for all target frameworks?

Other Notes

including  Isolated buy sell , market buy, query max borrow and calculating the purchase power.
additional close positions (sell and put)
Copy link
Owner

@glitch100 glitch100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR it contains a lot which is great! Please follow the comments given and as a bonus add some more tests or example data to the Console application and documentation README.md etc. And then we can merge this in 👍

.gitignore Outdated Show resolved Hide resolved
BinanceExchange.API/Trade/BinTrade.cs Outdated Show resolved Hide resolved
BinanceExchange.API/Trade/BinTrade.cs Outdated Show resolved Hide resolved
BinanceExchange.API/Trade/BinTrade.cs Outdated Show resolved Hide resolved
}
else if(asset == ((dynamic)x).quoteAsset.asset.Value)
{// the requested asset is the one used for quotes
freeCoins = decimal.Parse(((dynamic)x).quoteAsset.free.Value);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it called freeCoins?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

free is like cash, i used their term (.baseAsset.free.Value) - the free amount you may use.
regarding Coins, i'll take any suggestion

BinanceExchange.API/Trade/BinTrade.cs Outdated Show resolved Hide resolved
BinanceExchange.API/Trade/BinTrade.cs Outdated Show resolved Hide resolved
BinanceExchange.API/Trade/BinTrade.cs Outdated Show resolved Hide resolved
BinanceExchange.API/Trade/BinTrade.cs Outdated Show resolved Hide resolved
BinanceExchange.API/Trade/BinTrade.cs Outdated Show resolved Hide resolved
@ArnonSpam ArnonSpam requested a review from glitch100 December 8, 2021 23:14
@ArnonSpam ArnonSpam marked this pull request as draft December 8, 2021 23:15
@ArnonSpam ArnonSpam marked this pull request as ready for review December 8, 2021 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants