How to get historical data for any futures?

Hello @gegobyte

For futures contract, the expiry code needs to be on the basis of expiry.

You can refer to this link for the expiry code:

1 Like