Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

specify commission asset #207

Open
chriscrutt opened this issue Sep 4, 2020 · 0 comments
Open

specify commission asset #207

chriscrutt opened this issue Sep 4, 2020 · 0 comments
Labels

Comments

@chriscrutt
Copy link

chriscrutt commented Sep 4, 2020

I cannot find anywhere in the API docs allowing you to specify a commission asset. For some currencies, I would like to use BNB as the commission asset in order to get lower fees while on others I would like to use the base asset for commission fees as the price of BNB might "beat" the price of the current coins which would lead to a loss.

I see that when you get a callback/response from a limit order and/or look at open orders or what have you, it states the commission as well as the commission asset. So is it possible to add the ability to define the commission asset through the API?

edit:

an example could be:

let quantity = 1, price = 11000, commission = "BNB";
binance.buy("BTCUSDT", quantity, price, commission, {type:'LIMIT'}, (error, response) => {
    console.info("Limit Buy response", response);
    console.info("order id: " + response.orderId);
});

or

let quantity = 1, commission = "baseAsset";
binance.marketBuy("ETHBTC", quantity, commission);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants