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.
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'
[ [ 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!