sthewissen / Mynt

An Azure Functions-based crypto currency trading bot; featuring 10 exchanges, 25 indicators, custom strategy support, backtester and more
BSD 3-Clause "New" or "Revised" License
237 stars 129 forks source link

Volume Always Empty #47

Closed basdroid closed 6 years ago

basdroid commented 6 years ago

Hi, When creating the Candle data in the Binance API BinanceApi.cs line 274, the Volume is not set, so when using a strategy with Volume parameter like the MFI then it always return a 0. so please adjust the code to:

 new Candle
                {
                    Close = (double)_.Close,
                    High = (double)_.High,
                    Low = (double)_.Low,
                    Open = (double)_.Open,
                    Volume = (double)_.Volume,
                    Timestamp = _.OpenTime
                }

Bas

sthewissen commented 6 years ago

Fixed. However in the near future this whole Binance API project will be moved over to ExchangeSharp (see develop).