thibaultyou / tradingview-alerts-processor

Minimalist service designed to execute TradingView webhooks and process them to cryptocurrencies exchanges.
MIT License
79 stars 23 forks source link

Relative account sizing is not working correctly #33

Open almodhfer opened 2 years ago

almodhfer commented 2 years ago

When using relative sizing in binance futures such as : { "stub": "MAIN", "direction": "long", "symbol": "BTC/USDT", "size": "20%" }

It buys only 20% of the available balance without the margin.

leifjones commented 2 years ago

One of these spots may be the code to look at: getTickerPosition() or getPositionSize(). Though, I'm unfamiliar with either exchange