# 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 prices from websocket.\
> \
> This endpoint will return prices from websocket.

```json
{"openapi":"3.0.1","info":{"title":"Websocket Prices","version":"1.0"},"tags":[{"name":"Prices","description":"Prices"}],"servers":[{"url":"https://prices-provider.platform-test.tradevest.ai","description":"Test"},{"url":"https://prices-provider.platform-pretest.tradevest.ai","description":"Pretest"}],"paths":{"/websocket/prices":{"get":{"summary":"Get Prices","operationId":"websocket-get-prices","description":"Get prices from websocket.\n\nThis endpoint will return prices from websocket.","tags":["Prices"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSocketRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSocketResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSocketResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}}},"components":{"schemas":{"WebSocketRequest":{"title":"WebSocket Request","type":"object","required":["type"],"properties":{"type":{"$ref":"#/components/schemas/WebSocketRequestTypesEnum"},"priceSubscription":{"$ref":"#/components/schemas/WebSocketRequestPriceSubscription"}}},"WebSocketRequestTypesEnum":{"title":"WebSocket Request Types","type":"string","enum":["PRICE_SUBSCRIPTION"]},"WebSocketRequestPriceSubscription":{"title":"Price Subscription","type":"object","properties":{"markets":{"type":"array","items":{"$ref":"#/components/schemas/WebSocketPriceMarket"}}}},"WebSocketPriceMarket":{"title":"Price Subscription Item","type":"object","required":["currency"],"properties":{"currency":{"$ref":"#/components/schemas/CurrencyEnum"},"cryptoSymbol":{"type":"string","description":"Digital assets symbol"},"symbol":{"type":"string","description":"Tokenized asset symbol"}}},"CurrencyEnum":{"title":"CurrencyEnum","type":"string","description":"Currency of the product's balance. Currency code in ISO 4217","enum":["EUR"]},"WebSocketResponse":{"title":"WebSocket Response","type":"object","required":["type"],"properties":{"type":{"$ref":"#/components/schemas/WebSocketResponseTypesEnum"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/WebSocketResponsePrice"}},"error":{"type":"string"},"connectionId":{"type":"string"}}},"WebSocketResponseTypesEnum":{"title":"WebSocket Response Types","type":"string","enum":["ERROR","PRICES"]},"WebSocketResponsePrice":{"title":"Price","type":"object","required":["market","time","asks","bids"],"properties":{"market":{"$ref":"#/components/schemas/WebSocketPriceMarket"},"time":{"type":"string","format":"date-time"},"asks":{"type":"array","items":{"$ref":"#/components/schemas/WebSocketResponsePriceItem"}},"bids":{"type":"array","items":{"$ref":"#/components/schemas/WebSocketResponsePriceItem"}},"previous":{"type":"object","title":"Previous Price Item","properties":{"time":{"type":"string","format":"date-time"},"ask":{"$ref":"#/components/schemas/WebSocketResponsePriceItem"},"bid":{"$ref":"#/components/schemas/WebSocketResponsePriceItem"}},"required":["time","ask","bid"]}}},"WebSocketResponsePriceItem":{"title":"Price Item","type":"object","required":["price","quantity"],"properties":{"price":{"type":"string"},"quantity":{"type":"string"}}},"ErrorMessage":{"title":"ErrorMessage","type":"object","properties":{"message":{"type":"string"},"responseType":{"type":"string"},"validationString":{"minLength":1,"type":"string"},"requestId":{"type":"string"},"errorCode":{"type":"string","maxLength":255},"errorDetails":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetails"}}},"required":["message","responseType","requestId"]},"ErrorDetails":{"title":"ErrorDetails","type":"object","properties":{"field":{"type":"string","maxLength":255},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetailsExplanation"}}},"required":["field"]},"ErrorDetailsExplanation":{"title":"ErrorDetailsExplanation","type":"object","properties":{"code":{"type":"string","maxLength":255},"parameter":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tradevest.ai/websockets/websocket-prices/prices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
