LogoLogo
Back to HaasOnline.comSwitch to Developer API
4.x
4.x
  • Welcome
  • TradeServer Cloud
    • Overview
    • Security
    • Troubleshooting
  • TradeServer Enterprise
    • Overview
    • Updates
    • Security
    • Installation
      • Windows
      • MacOS
      • Linux
    • Configuration
      • License Key
      • Login credentials
      • Hosting
        • Linux VPS Hosting
    • Special features
      • Price history
      • Backups
      • Machine Learning
        • Built-in Machine Learning
        • Custom Machine Learning
      • Scripted Exchange API (Coming Soon)
      • Local API (Coming Soon)
    • Troubleshooting
  • Interface
    • General Interface
      • Left Menu
      • Upper Right Items
        • Account data
        • Execute trade
        • AI Chatbots
          • Chatbot Julia
          • Chatbot David
          • Chatbot Thomas
        • Notifications
        • Menu
          • Exchange accounts
          • Settings
          • License information
          • Change Logs
          • Logout
      • Status bar
        • Price tickers
    • Dashboard
    • Bots
      • Bot management
      • Bot templates
    • HaasScript
      • Web Editor
      • Backtest Lab
        • Lab test setup
      • Backtest History
      • Manage Scripts
      • Manage Signals
    • Tools
      • Marketview
      • Market intelligence
      • Exchange profiler
      • Markets explorer
      • News
    • Finance
      • Portfolio
      • External Wallet
  • Haasscript
    • About
      • Change Log
    • Tutorials
      • Bot building
        • Trade-bot building
        • Visual bot building
        • Scripted bot building
      • Usage
        • HaasScript
          • Interval
          • Markets
          • Input Fields
          • Memory Management
          • Signal Handling
          • Position Information
          • Positions Handling
            • Fee correction
          • Order Handling
          • Trading
          • Charting
          • Optimizations
        • Visual Editor
          • Blocks
          • Parameters
          • Flow Control
          • Interaction
        • Script Editor
          • Classes
        • Managed Trading
        • Unmanaged Trading
    • Commands
      • Trade Bots
        • TradeBot Containers
        • Easy Indicators
        • Easy Safeties
        • Easy Insurances
      • Helpers
        • Array Helpers
        • Custom Command Helpers
        • Enumerations
        • Equations
        • Mathematical
        • Memory Helpers
        • Signal Helpers
        • String Helpers
        • Miscellaneous
        • Technical Analysis Helpers
      • Input data
        • Bot Settings
        • Input fields
        • Price Market Information
        • Script Settings
        • Time Information
        • Trade Market Information
      • Prices
      • Technical Analysis
      • Charting
      • Trading
        • Managed Trade Commands
        • Unmanaged Trade Commands
        • Order Information
        • Order Handeling
        • Position Information
        • Position Price Information
        • Profit Information
        • Wallet Information
      • Social Media
    • Built-in Bots
      • Version 3 bots
        • C# Scripted Bot
        • Email bot
        • Trendline Bot
        • Triangle Arbitrage Bot
      • Accumulation Bot
      • Enhanced RSI bot
      • FlashCrash (Grid) Bot
      • Crypto Index Bot
      • Intellibot Alice
      • Inter Exchange Arbitrage Bot
      • MadHatter Bot
      • Market Making Bot
      • Order Bot
      • PingPong Bot
      • Scalper bot
      • Zone-Recovery Bot
    • Community Bots
      • Simple Grid Bot (SPOT)
      • Simple Grid Bot (FUTURES)
      • Simple Market Maker (SPOT)
      • Simple Market Maker (FUTURES)
  • Usage
    • First Usage
    • Setup Exchange
      • Adding an API to the Platform
      • Binance
      • Binance US
      • Bit2me
      • Bitfinex
      • Bitget
      • BitMEX
      • ❌Bitpanda
      • Bitstamp
      • ❌Bittrex
      • Bybit
      • ❌Cex.IO (Legacy API)
      • ❌Coinbase
      • ❌Crypto.com
      • Deribit
      • Gemini
      • Gleec
      • ❌HitBTC
      • Huobi
      • ❌Ionomy
      • Kraken
      • Kraken Futures
      • KuCoin
      • KuCoin Futures
      • LBank
      • ❌OKCoin
      • OKX
      • OKX-Futures
      • OKX-Swap
      • Phemex
      • Poloniex
      • Poloniex Futures
      • WooX
    • Setup Telegram Notification Bot
    • Setup Discord Notification Bot
    • Use Signals
  • Other Resources
    • YouTube
    • Guides & Tutorials
    • Questions & Answers
    • Community Projects
  • Need Help?
    • Ask on Discord
    • Submit Support Ticket
Powered by GitBook
On this page
  • AskPrices
  • BidPrices
  • BuyPrices
  • ClosePrices
  • CurrentPrice
  • GetBodyHighPrices
  • GetBodyLowPrices
  • GetVolume
  • HeikenClosePrices
  • HeikinOpenPrices
  • HighPrices
  • HLCPrices
  • HLPrices
  • LowPrices
  • OCPrices
  • OHLCPrices
  • OpenPrices
  • Prices
  • SellPrices
  • SourcePrices

Was this helpful?

  1. Haasscript
  2. Commands

Prices

AskPrices

Gets the buy/ask prices.

Syntax: AskPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns the buy/ask prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

BidPrices

A collection with sell/ask prices. Sorted from new to old.

Syntax: BidPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of sell/ask prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

BuyPrices

Gets the buy/ask prices.

Syntax: BuyPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns the buy/ask prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

ClosePrices

A collection with close prices. Sorted from new to old.

Syntax: ClosePrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of close prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

CurrentPrice

Gets all the price data from the current candle.

Syntax: CurrentPrice([ market ])

Returns the price data in an array.

Return type: Dynamic

Parameter Name
Parameter Type
Required
Suggestions

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

GetBodyHighPrices

A collection with the highest price of the candle its body prices. Sorted from new to old.

Syntax: GetBodyHighPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of the highest price of the candle its body prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

GetBodyLowPrices

A collection with the lowest price of the candle its body prices. Sorted from new to old.

Syntax: GetBodyLowPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of the lowest price of the candle its body prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

GetVolume

A collection with volume data. Sorted from new to old.

Syntax: GetVolume([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection with volume data.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

HeikenClosePrices

A collection with the average of open, high, low and close prices. Sorted from new to old.

Syntax: HeikenClosePrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of the average of open, high, low and close prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

HeikinOpenPrices

Gets the Heikin-Ashi open prices.

Syntax: HeikinOpenPrices([ interval ], [ fullCandles ], [ market ])

Returns the Heikin-Ashi open prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

HighPrices

A collection with high prices. Sorted from new to old.

Syntax: HighPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of high prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

HLCPrices

A collection with the average of high, low and close prices. Sorted from new to old.

Syntax: HLCPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of the average of high, low and close prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

HLPrices

A collection with an average of high and low prices. Sorted from new to old.

Syntax: HLPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of an average of high and low prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

LowPrices

A collection with low prices. Sorted from new to old.

Syntax: LowPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of low prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

OCPrices

A collection with an average of open and close prices. Sorted from new to old.

Syntax: OCPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of an average of open and close prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

OHLCPrices

A collection with the average of open, high, low and close prices. Sorted from new to old.

Syntax: OHLCPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of the average of open, high, low and close prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

OpenPrices

A collection with open prices. Sorted from new to old.

Syntax: OpenPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of open prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

Prices

A collection with close prices. Sorted from new to old.

Syntax: Prices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of close prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

SellPrices

A collection with sell/ask prices. Sorted from new to old.

Syntax: SellPrices([ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of sell/ask prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

SourcePrices

Gets the price source based on the input enum given. Can be any of Enumerations Source Price Types.

Syntax: SourcePrices(sourceType, [ interval ], [ fullCandles ], [ market ], [ hlcStyle ])

Returns a collection of prices.

Return type: ListNumbers

Parameter Name
Parameter Type
Required
Suggestions

sourceType

Enum

True

ClosePriceSourceType,OpenPriceSourceType,HighPriceSourceType,LowPriceSourceType,HLPriceSourceType,HLCPriceSourceType,OHLCPriceSourceType,VolumeSourceType

interval

Number

False

InputInterval,Number,CurrentInterval

fullCandles

Boolean

False

True,False

market

String

False

InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket

hlcStyle

Boolean

False

True,False

PreviousTrade Market InformationNextTechnical Analysis

Last updated 1 year ago

Was this helpful?