Market

Object in Single Market Strategies that reveals information about selected market.

Properties

Name

Type

Description

Asset

string

The name of the asset pairing. For example: "ETH/BTC".

Exchange

string

The name of the exchange.

CurrentPrice

double

Current price of the asset in quote currency.

CurrentTime

DateTime

Current time. In backtest, this is the time of the bar which is being processed by the strategy at that moment.

// Write current price of the selected market to the logs
Log("Current price of " + Market.Asset + " on " + Market.Exchange + ": " + Market.CurrentPrice);

Last updated