CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 66 % of retail investor accounts lose money when trading CFDs with this provider. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.

[ANNOUNCEMENT] Darwin Info API 1.1 - Quotes with higher resolution

Darwin Info API v1.1

A new version of the Darwin Info API has been released and it is the default version now, available for everyone.
This new version introduces new arguments start and end in the method /history/quotes, allowing to reach higher resolution of quotes depending on the range of data selected. The start and end parameters are expecting values in EPOCH timestamp.

Range < ~8 hours -> return 1 minute resolution.
Range < ~16 hours -> return 2 minute resolution.
Range < 24 hours -> return 5 minute resolution.
Range < 5 days -> return 30 minute resolution.
Range < 1 month -> return 2 hours resolution.
Range < 3 months -> return 6 hours resolution.
Range < 6 months -> return 12 hours resolution.
Range > 6 months -> return 24 hours resolution.

Example:

curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer <token>' 'https://10.2.6.46:8243/darwininfo/1.1.0/products/DWC/history/quotes?start=1541404740000'

Returns:

[
  [
    1541404740000,
    77.96
  ],
  [
    1541404800000,
    77.96
  ],
  [
    1541404860000,
    77.96
  ],
  [
    1541404920000,
    77.96
  ],
  [
    1541404980000,
    77.96
  ],
  ...
]

On the other hand, the Buy Stops are now enabled through the Darwin Trading API, without a change in the API. A POST of conditional order with “side”: “BUY” and “type”: “GREATER_THAN_EQUAL” will establish a Buy Stop on the darwin. Our website will also allow it very soon!

5 Likes