Prices

If you send a PRICE_SUBSCRIPTION request with an empty priceSubscription.markets array (or omit the field entirely), the server treats it as a wild-card subscription. Instead of returning prices only for specific currency / cryptoSymbol pairs, the web-socket will stream every market the platform currently supports. Use this convenience feature when you need a complete market-data feed without enumerating each currency pair yourself.

Get Prices

get

Ready to test

Get prices from websocket.

This endpoint will return prices from websocket.

Body
typestring · enumRequiredPossible values:
Responses
200
OK
application/json
get
GET /websocket/prices HTTP/1.1
Host: prices-provider.platform-test.tradevest.ai
Content-Type: application/json
Accept: */*
Content-Length: 104

{
  "type": "PRICE_SUBSCRIPTION",
  "priceSubscription": {
    "markets": [
      {
        "currency": "EUR",
        "cryptoSymbol": "text"
      }
    ]
  }
}
{
  "type": "ERROR",
  "prices": [
    {
      "market": {
        "currency": "EUR",
        "cryptoSymbol": "text"
      },
      "time": "2025-07-10T02:56:44.374Z",
      "asks": [
        {
          "price": "text",
          "quantity": "text"
        }
      ],
      "bids": [
        {
          "price": "text",
          "quantity": "text"
        }
      ],
      "previous": {
        "time": "2025-07-10T02:56:44.374Z",
        "ask": {
          "price": "text",
          "quantity": "text"
        },
        "bid": {
          "price": "text",
          "quantity": "text"
        }
      }
    }
  ],
  "error": "text",
  "connectionId": "text"
}

Last updated