Skip to content

PnL run completed

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

Sent when a PnL (profit and loss) calculation run has completed for a futures pair. Contains the settlement price used for the PnL calculation.

Subscription

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

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

Message

Event type: PNL_RUN_COMPLETED

Payload Schema

PropertyTypeRequiredDescription
pricestringYes-

Example

json
"{\n    \"type\": \"PNL_RUN_COMPLETED\",\n    \"currencyPairSymbol\": \"BTCUSDTPERP\",\n    \"data\": {\n        \"price\": \"116048\"\n    }\n}"

Channel

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