The Futures Exchange object is similar to the Exchange object, except it is designed to work with exchanges or brokerages that trade perpetual futures. For example, Blankly supports both Binance and BinanceFutures objects, for SPOT markets and Perpetual Futures respectively.
Because this is designed to work with each exchange, the creation is different depending on usage & goal.
from blankly import futures
exchange = futures.BinanceFutures()
exchange = futures.FTXFutures()
|portfolio_name||Optionally fill this with a reference to a portfolio inside ||str|
|keys_path||Optionally fill this with a path to the ||str|
|settings_path||Optionally fill this with a path to the ||str|
|An exchange object||FuturesExchange object.|
Get the name of the portfolio that the exchange object is using.
|The name of the portfolio from ||str|
Get the type of exchange that the interface is running on.
|A string identifier for the exchange||str|
Get the preferences dictionary that the exchange class is using.
|A dictionary with defined preferences.||See here.||str|
Get the authenticated interface object (very important).
|This gives the actual interface object to use. See here.||All interfaces have identical calls||FuturesExchangeInterface|
This is an important field that allows the user to get the direct, unfiltered API calls to the exchange. This function can be used to bypass the user interface & opens up all implemented calls which go far beyond the scope of the interface.
|A direct calls object which bypasses all Blankly features||Various API objects|