Sway Charts API Documentation
  • REST API Specification
    • Getting Started
      • Introduction
      • Errors
      • API Versioning
      • Conditional Requests & Updates
      • Entity Versioning
      • Data Types and Formats
      • Rate Limits & Throttling
    • Authentication & Authorization
      • HMAC Authentication
      • POST Create Session Token
      • POST Ping
      • POST Logout
    • Trading
      • POST Place Order
      • PUT Modify Order
      • DELETE Cancel Order
    • Reference Data
      • GET List Instruments
      • List Instrument Details
    • Users and Accounts
      • GET Get Users
      • GET List Account Portfolio
      • GET List Open Positions
      • GET List Open Orders
      • GET List Cash Transfers
      • GET POST List Orders
      • GET List Account Metrics
      • GET List Account Events
    • Market Data
      • POST Request Market Data
    • Conversion Rates
      • POST Get Conversion Rates
    • Cash Transaction
      • Single Order Request
      • Order Group Request
      • Order Response
      • Instrument
      • Instrument Details
      • Trading Session
      • Limit Value
      • Margin Rate
      • Margin Tier
      • User Details
      • Account Details
      • Account Portfolio
      • Balance
      • Position
      • Order
      • Order Leg
      • Execution
      • Cash Transfer
      • Historic Order List
      • Account Metrics
      • Position Metrics
      • Currency Metrics
      • Account Event
      • Market Data Request
      • Market Data Event Type
      • Market Data List
      • Quote
      • Candle
      • Conversion Rate
    • Revision History
Powered by GitBook
On this page
  • string candleType
  • number count
  1. REST API Specification
  2. Cash Transaction

Market Data Event Type

Field
Value
Type

type

Either Quote or Candle

format

Always COMPACT

String, optional

candleType

Type of the candle, only for candle queries

String, optional

fromTime

Required for Candle type. UTC time to get history from.

Timestamp, optional

toTime

Required for Candle type. UTC time to get history till.

Timestamp, optional

count

Maximum count of candles in response. If not defined, used value predefined on server side.

string candleType

Possible values:

  • m (1 min)

  • 5m (5 min)

  • 15m (15 minutes)

  • 30m (30 minutes)

  • h (1 hour)

  • 2h (2 hours)

  • 4h (4 hours)

  • d (Day)

  • w (Week)

  • mo (Month)

number count

If the number of candles in the [fromTime, toTime] period is more than the count value, exactly the count candles will be returned in response. Older candles will be filtered.

PreviousMarket Data RequestNextMarket Data List

Last updated 1 year ago

, required

, optional

Account code
Number