Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
exchange.SetContractType
exchange.GetContractType
exchange.SetDirection
exchange.SetMarginLevel
exchange.GetPositions
exchange.GetFundings
Exchange
IO
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Gets the contract code currently set for the exchange object.

exchange.GetContractType()

Examples

Set the this-week contract, then read the current contract code.

javascript
function main () { exchange.SetContractType("this_week") Log(exchange.GetContractType()) // Output: this_week }
python
def main(): exchange.SetContractType("this_week") Log(exchange.GetContractType()) # Output: this_week
rust
fn main() { let _ = exchange.SetContractType("this_week"); Log!(exchange.GetContractType()); // Output: this_week }

Returns

TypeDescription

string

Contract code defined by the FMZ platform, for example: this_week, swap, etc.

See Also