Skip to content

Automatically infer futures type

Choose a tag to compare

@MathisWellmann MathisWellmann released this 04 Mar 19:39

Removes the FuturesType enum in favor of an automatic mechanism to infer the futures type through the configured margin currency.
The field starting_wb of Config defines the margin Currency to use which infers the futures type automatically.
The mapping is as follows:
QuoteCurrency -> linear futures contract
BaseCurrency -> inverse futures contract
This makes miss configuration impossible and is strictly better.