# Bybit API

> Bybit API on Apizie: 11 endpoints (Long/Short Ratio, Funding History, Index Price Kline, Instruments Info, …) returned as clean JSON through one API key. 11 endpoints are live now. Call it over REST at https://www.apizie.tech/v1/finance:bybit/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `finance:bybit`
- Category: Finance
- Status: live
- Source: https://bybit.com
- Page: https://www.apizie.tech/api/finance/bybit
- OpenAPI: https://www.apizie.tech/api/finance/bybit/openapi.json

Bybit v5 public market data: candles, tickers, order book, funding, open interest and long/short ratio.

## Endpoints

### Long/Short Ratio
`GET https://www.apizie.tech/v1/finance:bybit/account-ratio`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| period | string | no |  |
| start | string | no | Epoch ms or ISO date |
| end | string | no | Epoch ms or ISO date |
| count | integer | no | Number of rows to return |
| page | integer | no |  |

### Funding History
`GET https://www.apizie.tech/v1/finance:bybit/funding-history`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| start | string | no | Epoch ms or ISO date |
| end | string | no | Epoch ms or ISO date |
| count | integer | no | Number of rows to return |
| page | integer | no |  |

### Index Price Kline
`GET https://www.apizie.tech/v1/finance:bybit/index-price-kline`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| interval | string | no |  |
| start | string | no | Epoch ms or ISO date |
| end | string | no | Epoch ms or ISO date |
| count | integer | no | Number of candles |
| page | integer | no |  |

### Instruments Info
`GET https://www.apizie.tech/v1/finance:bybit/instruments-info`

| Parameter | Type | Required | Description |
|---|---|---|---|
| category | string | no |  |
| symbol | string | no |  |
| baseCoin | string | no |  |
| status | string | no |  |
| count | integer | no | Number of rows to return |
| page | integer | no |  |

### Kline
`GET https://www.apizie.tech/v1/finance:bybit/kline`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| interval | string | no |  |
| start | string | no | Epoch ms or ISO date |
| end | string | no | Epoch ms or ISO date |
| count | integer | no | Number of candles |
| page | integer | no |  |

### Mark Price Kline
`GET https://www.apizie.tech/v1/finance:bybit/mark-price-kline`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| interval | string | no |  |
| start | string | no | Epoch ms or ISO date |
| end | string | no | Epoch ms or ISO date |
| count | integer | no | Number of candles |
| page | integer | no |  |

### Open Interest
`GET https://www.apizie.tech/v1/finance:bybit/open-interest`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| intervalTime | string | no |  |
| start | string | no | Epoch ms or ISO date |
| end | string | no | Epoch ms or ISO date |
| count | integer | no | Number of rows to return |
| page | integer | no |  |

### Orderbook
`GET https://www.apizie.tech/v1/finance:bybit/orderbook`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| count | integer | no | Depth per side |

### Premium Index Kline
`GET https://www.apizie.tech/v1/finance:bybit/premium-index-kline`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| interval | string | no |  |
| start | string | no | Epoch ms or ISO date |
| end | string | no | Epoch ms or ISO date |
| count | integer | no | Number of candles |
| page | integer | no |  |

### Recent Trade
`GET https://www.apizie.tech/v1/finance:bybit/recent-trade`

| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | yes |  |
| category | string | no |  |
| baseCoin | string | no |  |
| count | integer | no | Number of rows to return |

### Tickers
`GET https://www.apizie.tech/v1/finance:bybit/tickers`

| Parameter | Type | Required | Description |
|---|---|---|---|
| category | string | no |  |
| symbol | string | no |  |
| baseCoin | string | no |  |
| expDate | string | no |  |

## Example
```
curl "https://www.apizie.tech/v1/finance:bybit/account-ratio" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Bybit API?
Create a free Apizie key, then send GET https://www.apizie.tech/v1/finance:bybit/account-ratio with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Bybit API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Bybit API?
Yes. Add the Apizie MCP server (https://www.apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key finance:bybit.

### What is the status of the Bybit API?
Live: works with just an Apizie key
