nautilus_trader icon indicating copy to clipboard operation
nautilus_trader copied to clipboard

Support of perpetual futures contract

Open quant2008 opened this issue 1 year ago • 3 comments

Could nautilus support crypto perpetual futures contract . Trading of perpetual futures contract implies paying (or receiving) funding payments periodically based on the funding rate - usually every 8-24 hours. Open positions with perpetual futures contract must be collateralized with USD pegged stablecoins (linear) or with the crypto asset itself like BTC or ETH (inverse).

https://en.wikipedia.org/wiki/Perpetual_futures

quant2008 avatar Jan 31 '24 09:01 quant2008

Hi @quant2008

The platform supports crypto perpetual futures contracts, we have the instruments defined and these can be traded live or backtest. What isn't simulated for backtesting however is the funding rates.

This is likely to come in a future upgrade to accounting, with extendable commission/fee models - but is too far down on the priority list to be able to give an accurate estimate for.

I'd be happy to discuss any ideas you may have though on how we could incorporate this into the current codebase, as it shouldn't be too hard to just add funding rate data and periodic account state events as the backtest progresses.

cjdsellers avatar Feb 05 '24 06:02 cjdsellers