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

Replace order calculation method #3

Closed thibaultyou closed 3 years ago

thibaultyou commented 3 years ago

Orders size need to be translated from dollars to tokens / contracts.

Current : formula used is amount = ( high(bid) + low(ask) ) / 2 Issue : amount is a bit different than real price Fix : replace formula by current exchange price

thibaultyou commented 3 years ago

Fixed here, waiting to be merged on master branch.

thibaultyou commented 3 years ago

Merged here.