According to this page you can use a Futures API. There is a link to the documentation page near the bottom.
You can search the forum how to use APIs.
There is also this topic but it’s about live prices.