Home Platform Algorithms Charts Pricing Documentation Register Account

Cloud9Trader API

REST API

The REST API is fully public and can be queried using HTTPS requests from any language.

The base path for all endpoints is https://www.cloud9trader.com/api/v1/ TODO. Please visit the REST API documentation.


Get Instruments

Fetch configuration for all available instruments across exchanges.

GET https://www.cloud9trader.com/public-api/instruments

Response

Example:

[
    {
        "id": "EUR_USD:OANDA",
        "broker": "OANDA",
        "symbol": "EUR_USD",
        "displaySymbol": "EUR/USD",
        "displayName": "EUR/USD",
        "product": "Forex",
        "productId": 1,
        "dealt": "EUR",
        "quote": "USD",
        "precision": 5,
        "pip": "0.0001",
        "pipSize": 0.0001,
        "pipPrecision": 1,
        "maxTradeUnits": 10000000,
        "maxQuantity": 10000000,
        "minTrailingStop": 5,
        "maxTrailingStop": 10000,
        "marginRate": 0.05,
        "contractMultiplier": 1,
        "factor": 1,
        "lotSize": 1
    },
    ...
]

Get Historical Price

Fetch historical price bars or recent tick data.

GET https://price.cloud9trader.com/historical?instrumentId=<instrumentId>&interval=<interval>&start=<startDate>&end=endDate

Query parameters

ParameterRequiredValues
instrumentId
The instrument ID
e.g. "XBTUSD:BitMEX"
interval
The bar interval
"Tick", "S5", "S10", "M2", "M5", "M10", "M15", "M30", "H1", "H2", "H4", "H8", "H12", "D1"
startDate
Range start (ISO 8601 format)
e.g. "2019-08-01T00:00:00.000Z"
endDate
Range end (ISO 8601 format)
e.g. "2019-09-01T00:00:00.000Z"

Response

Responses are minified to reduce transfer sizes.

Example:

[
    [
        "2019-09-07T10:00:00.000Z", // Open time
        10880,                      // Open bid
        10892.17,                   // High bid
        10830.06,                   // Low bid
        10856.79,                   // Close bid
        10881.54,                   // Open ask
        10892.2,                    // High ask
        10832.13,                   // Low ask
        10859.24,                   // Close ask
        48732                       // Volume
    ],
    ...
]

Was this page useful? If you find any errors or have any questions please get in touch at support@cloud9trader.com.