Price Market Information

AverageCandleSize

Calculates the average candle body size of the last 50 minutes.

Syntax: AverageCandleSize([ market ])

Returns the average candle body size.

Return type: Number

Parameter NameParameter TypeRequiredSuggestions

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

AverageOrderbookSpread

Calculates the average orderbook bid/ask spread of the last 50 minutes.

Syntax: AverageOrderbookSpread([ market ])

Returns the average orderbook bid/ask spread.

Return type: Number

Parameter NameParameter TypeRequiredSuggestions

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

CreateMarket

Creates a market string that can be used for a variety of commands.

Syntax: CreateMarket([ priceSource ], [ baseCurrency ], [ quoteCurrency ], [ contractName ])

Returns the market string.

Return type: String

Parameter NameParameter TypeRequiredSuggestions

priceSource

String

False

Text,Input,SessionGet,Load

baseCurrency

String

False

Text,Input,SessionGet,Load

quoteCurrency

String

False

Text,Input,SessionGet,Load

contractName

String

False

Text,Input,SessionGet,Load

GetLastTrades

Gets a list of the last trades.

Syntax: GetLastTrades([ depth ], [ market ])

Returns the last trades. Array format: [[price, amount, isBuy?, unix], ... ].

Return type: ListNumbers

Parameter NameParameter TypeRequiredSuggestions

depth

Number

False

Input,Number,SessionGet

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

GetOrderbook

Gets the orderbook on a specific market.

Syntax: GetOrderbook([ market ])

Returns a collection with 4 arrays.

Return type: ListNumbers

Parameter NameParameter TypeRequiredSuggestions

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

GetOrderbookAsk

Gets a list of the orderbook ask records.

Syntax: GetOrderbookAsk([ market ])

Returns an array of bid prices and order sizes. Output format: [[price, amount], [price, amount] ...].

Return type: Dynamic

Parameter NameParameter TypeRequiredSuggestions

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

GetOrderbookBid

Gets a list of the orderbook bid records.

Syntax: GetOrderbookBid([ market ])

Returns an array of bid prices and order sizes. Output format: [[price, amount], [price, amount] ...].

Return type: Dynamic

Parameter NameParameter TypeRequiredSuggestions

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

LastBuyTradesCommand

Returns all last selling orders

Syntax: LastBuyTradesCommand([ Seconds back ], [ market ])

Returns the buying trading volume

Return type: Number

Parameter NameParameter TypeRequiredSuggestions

Seconds back

Number

False

Input,Number,SessionGet

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

LastSellTradesCommand

Returns all last selling orders

Syntax: LastSellTradesCommand([ Seconds back ], [ market ])

Returns the selling trading volume

Return type: Number

Parameter NameParameter TypeRequiredSuggestions

Seconds back

Number

False

Input,Number,SessionGet

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

LastTradesSentiment

Calculates the last trades sentiment as a number.

Syntax: LastTradesSentiment([ market ])

Returns the last trades sentiment. 0.5 is the default, idle value.

Return type: Number

Parameter NameParameter TypeRequiredSuggestions

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

OrderbookSentiment

Calculates the orderbook sentiment as a number.

Syntax: OrderbookSentiment([ market ])

Returns the orderbook sentiment. 0.5 is the default, idle value.

Return type: Number

Parameter NameParameter TypeRequiredSuggestions

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

PriceLevel

Determines the price level. For example. 123456 will return 10000. 123 will return 100.

Syntax: PriceLevel(price)

Returns the price level.

Return type: Number

Parameter NameParameter TypeRequiredSuggestions

price

Number

True

GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices

Last updated