Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
exchange.GetContractType
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
| Type | Description |
string | Contract code defined by the FMZ platform, for example: |
See Also