Back

Price of -1 in BTC order history

Hi all, 

Facing an issue with the orders of BTCUSD on a backtest - some of the market orders were filled with a price of -1 (see below). Setting SetBrokerageModel(BrokerageName.Bitfinex, AccountType.Margin).  Please let me know if I've missed something. Thanks!

Time    Symbol    Price    Quantity    Type    Status    Value
2018-06-05T12:00:00Z    BTCUSD    -1    -1.4936    Market    Filled    1.4936
2019-02-09T09:00:00Z    BTCUSD    -1    2.6568    Market    Filled    -2.6568
2019-02-09T10:00:00Z    BTCUSD    -1    -2.6568    Market    Filled    2.6568

Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hello! Please attach a backtest replicating the issue so people can assist you further.

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hello! I've attached a backtest with the issue noted.

0


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed