> For the complete documentation index, see [llms.txt](https://cubexch.gitbook.io/cube-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cubexch.gitbook.io/cube-api/market-data/rest-api.md).

# REST API

The base URL for endpoints described in this page of live trading API is `https://api.cube.exchange/md/v0`.

Definitions for requests and responses can be found in the [Market Data OpenAPI Document](https://github.com/cubexch/gitbook/blob/main/generated/core/md_api_30.json).

Further specifics for field enums, reject codes, etc. can be found in the [Market Data API Websocket Documentation](/cube-api/market-data/websocket-api.md).

### Endpoints, public

Endpoints in this section do not require authentication.

{% openapi src="/files/x6uX0kCsMlfVEhdMSVUe" path="/book/{market\_id}/snapshot" method="get" %}
[md\_api\_30.json](https://398371474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlfNM0vNrk7VPr5UKauIS%2Fuploads%2Fgit-blob-21d2d8ba0706d5743f56062168309cc7eafe654e%2Fmd_api_30.json?alt=media)
{% endopenapi %}

{% openapi src="/files/x6uX0kCsMlfVEhdMSVUe" path="/book/{market\_id}/recent-trades" method="get" %}
[md\_api\_30.json](https://398371474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlfNM0vNrk7VPr5UKauIS%2Fuploads%2Fgit-blob-21d2d8ba0706d5743f56062168309cc7eafe654e%2Fmd_api_30.json?alt=media)
{% endopenapi %}

{% openapi src="/files/x6uX0kCsMlfVEhdMSVUe" path="/tickers/snapshot" method="get" %}
[md\_api\_30.json](https://398371474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlfNM0vNrk7VPr5UKauIS%2Fuploads%2Fgit-blob-21d2d8ba0706d5743f56062168309cc7eafe654e%2Fmd_api_30.json?alt=media)
{% endopenapi %}

{% openapi src="/files/x6uX0kCsMlfVEhdMSVUe" path="/parsed/tickers" method="get" %}
[md\_api\_30.json](https://398371474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlfNM0vNrk7VPr5UKauIS%2Fuploads%2Fgit-blob-21d2d8ba0706d5743f56062168309cc7eafe654e%2Fmd_api_30.json?alt=media)
{% endopenapi %}

{% openapi src="/files/x6uX0kCsMlfVEhdMSVUe" path="/parsed/book/{market\_symbol}/snapshot" method="get" %}
[md\_api\_30.json](https://398371474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlfNM0vNrk7VPr5UKauIS%2Fuploads%2Fgit-blob-21d2d8ba0706d5743f56062168309cc7eafe654e%2Fmd_api_30.json?alt=media)
{% endopenapi %}

{% openapi src="/files/x6uX0kCsMlfVEhdMSVUe" path="/parsed/book/{market\_symbol}/recent-trades" method="get" %}
[md\_api\_30.json](https://398371474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlfNM0vNrk7VPr5UKauIS%2Fuploads%2Fgit-blob-21d2d8ba0706d5743f56062168309cc7eafe654e%2Fmd_api_30.json?alt=media)
{% endopenapi %}
