Links
Comment on page

Price Market Information

AverageCandleSize

Calculates the average candle body size of the last 50 minutes.
  • AverageCandleSize([ market ])
Returns the average candle body size.
Return Type: Number
Parameter Name
Parameter Type
Required
Suggested
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket

AverageOrderbookSpread

Calculates the average orderbook bid/ask spread of the last 50 minutes.
  • AverageOrderbookSpread([ market ])
Returns the average orderbook bid/ask spread.
Return Type: Number
Parameter Name
Parameter Type
Required
Suggested
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket

CreateMarket

Creates a market string that can be used for a variety of commands.
  • CreateMarket([ priceSource ], [ baseCurrency ], [ quoteCurrency ], [ contractName ])
Returns the market string.
Return Type: String
Parameter Name
Parameter Type
Required
Suggested
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.
  • GetLastTrades([ depth ], [ market ])
Returns the last trades. Array format: [[price, amount, isBuy?, unix], ... ].
Return Type: ListNumbers
Parameter Name
Parameter Type
Required
Suggested
depth
Number
False
Input, Number, SessionGet
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket

GetOrderbook

Gets the orderbook on a specific market.
  • GetOrderbook([ market ])
Returns a collection with 4 arrays.
Return Type: ListNumbers
Parameter Name
Parameter Type
Required
Suggested
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket

GetOrderbookAsk

Gets a list of the orderbook ask records.
  • GetOrderbookAsk([ market ])
Returns an array of bid prices and order sizes. Output format: [[price, amount], [price, amount] ...].
Return Type: Dynamic
Parameter Name
Parameter Type
Required
Suggested
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket

GetOrderbookBid

Gets a list of the orderbook bid records.
  • GetOrderbookBid([ market ])
Returns an array of bid prices and order sizes. Output format: [[price, amount], [price, amount] ...].
Return Type: Dynamic
Parameter Name
Parameter Type
Required
Suggested
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket

LastTradesSentiment

Calculates the last trades sentiment as a number.
  • LastTradesSentiment([ market ])
Returns the last trades sentiment. 0.5 is the default, idle value.
Return Type: Number
Parameter Name
Parameter Type
Required
Suggested
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket

OrderbookSentiment

Calculates the orderbook sentiment as a number.
  • OrderbookSentiment([ market ])
Returns the orderbook sentiment. 0.5 is the default, idle value.
Return Type: Number
Parameter Name
Parameter Type
Required
Suggested
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket

PriceLevel

Determines the price level. For example. 123456 will return 10000. 123 will return 100.
  • PriceLevel(price)
Returns the price level.
Return Type: Number
Parameter Name
Parameter Type
Required
Suggested
price
Number
True
BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices