Skip to content

Allowed order types updated

SEND Server to Client on wss://api.valr.com/ws/trade

Sent when the set of allowed order types for a currency pair has changed. The data payload is a JSON array of allowed order type strings.

Subscription

This event requires an explicit subscription. Send a SUBSCRIBE message after connecting:

json
{
    "type": "SUBSCRIBE",
    "subscriptions": [
        {
            "event": "ALLOWED_ORDER_TYPES_UPDATED"
        }
    ]
}

Message

Event type: ALLOWED_ORDER_TYPES_UPDATED

Example

json
"{\n    \"type\": \"ALLOWED_ORDER_TYPES_UPDATED\",\n    \"currencyPairSymbol\": \"BTCUSDT\",\n    \"data\": [\n        \"STOP_LOSS_LIMIT\",\n        \"TAKE_PROFIT_LIMIT\",\n        \"LIMIT\",\n        \"LIMIT_POST_ONLY\",\n        \"SIMPLE\",\n        \"MARKET\"\n    ]\n}"

Channel

Channel: trade Address: wss://api.valr.com/ws/trade