Triggers
Retrieve your trigger orders (stop losses and take profits). Requires a valid API key sent with the x-api-key header. When a stop or take profit is triggered and accepted by the engine, it is converted into an open order and can be retrieved through the /orders endpoint. If it is not accepted by the engine for whatever reason, it will still be available through this endpoint and will have a diagnostic message attached to it.
GET /triggers
curl \
-X GET https://api.testnet.everstrike.io/triggers \
-H "x-api-key: $API_KEY"
Response examples (200)
{
"code": 200,
"msg": "null",
"result": [
{
"id": "38089ed0394011e9aab3bdc6c89d8f44",
"pair": "USD_BTCCALL_PERP",
"time": 1551128359228,
"price": 0.06909,
"status": "ACTIVE",
"qty_remaining": 0.01668,
"trigger_event": "MARK_PRICE",
"trigger_price": 0.17329
},
{
"id": "38089ed0394011e9aab3bdc6c89d8f44",
"msg": "Order was rejected due to insufficient balance",
"pair": "USD_BTCCALL_PERP",
"time": "1551128359228,",
"price": 0.06909,
"status": "CANCELLED",
"qty_remaining": 0.01668,
"trigger_event": "LAST_PRICE",
"trigger_price": 0.17329
}
]
}
Response examples (503)
{
"code": 503,
"msg": "Invalid request",
"result": {}
}