# Markets API

Base data for all market are available on /markets endpoint.

{% embed url="<https://alcor.exchange/api/markets>" %}

{% hint style="info" %}
The api depends on the subdomain assigned to each chain.\
ie: wax.alcor.exchange/api/markets, telos.alcor.exchange/api/markets.
{% endhint %}

Each market has additional api for more information:

## markets

<mark style="color:blue;">`GET`</mark> `https://wax.alcor.exchange/api/markets/:id`

Get full market information

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| id   | number | Market ID   |

{% tabs %}
{% tab title="200 " %}

```
{
  "id": 0,
  "base_token": {
    "contract": "eosio.token",
    "symbol": {
      "name": "WAX",
      "precision": 8
    },
    "str": "WAX@eosio.token"
  },
  "quote_token": {
    "contract": "prospectorsw",
    "symbol": {
      "name": "PGL",
      "precision": 4
    },
    "str": "PGL@prospectorsw"
  },
  "min_buy": "0.00000100 WAX",
  "min_sell": "0.0001 PGL",
  "frozen": 0,
  "fee": 20,
  "last_price": 0.69298836,
  "volume24": 8158.34775445,
  "volumeWeek": 83217.36892045,
  "volumeMonth": 424104.77220562,
  "change24": 6.28655828220858,
  "changeWeek": 19.27600212758915
}
```

{% endtab %}
{% endtabs %}

## Market deals

<mark style="color:blue;">`GET`</mark> `https://wax.alcor.exchange/api/markets/:id/deals`

Get latest deals

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| id   | number | Market ID   |

#### Query Parameters

| Name  | Type   | Description           |
| ----- | ------ | --------------------- |
| limit | number | Default limit is: 200 |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Charts api

<mark style="color:blue;">`GET`</mark> `https://wax.alcor.exchange/api/markets/:id/charts`

Get candles charts for specific market.

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| id   | number | Market ID   |

#### Query Parameters

| Name       | Type   | Description                         |
| ---------- | ------ | ----------------------------------- |
| to         | number | To timestamp                        |
| from       | number | From timestamp                      |
| resolution | string | <p>1/5/15/30/60/240<br>1D/1W/1M</p> |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
