Skip to content
ChartDeck ChartScript docs Account Open the terminal

market

The chart market.

#Variables

#market.basevariable

The base asset (BTC in BTCUSDT).

market.base: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.base

Since ChartScript 1

#market.descriptionvariable

A description of the market.

market.description: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.description

Since ChartScript 1

#market.idvariable

The market as VENUE:SYMBOL.

market.id: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.id

Since ChartScript 1

#market.kindvariable

"perp", "spot" or "other".

market.kind: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.kind

Since ChartScript 1

#market.main_idvariable

The chart market as VENUE:SYMBOL, also inside a request.

market.main_id: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.main_id

Since ChartScript 1

#market.min_qtyvariable

The smallest order quantity, or na when unknown.

market.min_qty: float

Type simple float.

Example

ChartScriptFragmentOpen in editor
const v = market.min_qty

Since ChartScript 1

#market.minmovevariable

The smallest price move in ticks (1).

market.minmove: int

Type simple int.

Example

ChartScriptFragmentOpen in editor
const v = market.minmove

Since ChartScript 1

#market.pointvaluevariable

The value of one point.

market.pointvalue: float

Type simple float.

Example

ChartScriptFragmentOpen in editor
const v = market.pointvalue

Since ChartScript 1

#market.pricescalevariable

The price scale: 1 / tick, rounded.

market.pricescale: int

Type simple int.

Example

ChartScriptFragmentOpen in editor
const v = market.pricescale

Since ChartScript 1

#market.quotevariable

The quote asset (USDT in BTCUSDT).

market.quote: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.quote

Since ChartScript 1

#market.rootvariable

The root of the symbol (the base asset for crypto).

market.root: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.root

Since ChartScript 1

#market.symbolvariable

The symbol on the venue.

market.symbol: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.symbol

Since ChartScript 1

#market.tickvariable

The price tick size.

market.tick: float

Type simple float.

Example

ChartScriptFragmentOpen in editor
const v = market.tick

Since ChartScript 1

#market.timezonevariable

The market time zone (UTC for crypto).

market.timezone: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.timezone

Since ChartScript 1

#market.venuevariable

The venue (exchange) name.

market.venue: string

Type simple string.

Example

ChartScriptFragmentOpen in editor
const v = market.venue

Since ChartScript 1

The ChartScript documentation is in English for now; translations will follow.