# Bitmex Market Data Scraper (`bigibyte/bitmex-market-data-scraper`) Actor

Collect active BitMEX instruments and market data fields into clean datasets. Filter by ticker, cap row limits, and export to JSON, CSV, or Excel.

- **URL**: https://apify.com/bigibyte/bitmex-market-data-scraper.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## BitMEX Market Data Scraper

![BitMEX Market Data Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/bitmex-market-data-scraper-cover.png)

Collect structured market instrument information from BitMEX with the **BitMEX Market Data Scraper**. Retrieve trading symbols, instrument types, market states, currencies, price limits, contract details, and other available instrument data. Filter results by specific symbols and export them for market research, dashboards, and financial analysis.

### What This Actor Does

The BitMEX Market Data Scraper collects information about instruments available in BitMEX's active instrument listing and organizes the results into structured records.

You can retrieve the full available instrument list or specify individual symbols to filter the results. Each record includes available details such as instrument identifiers, trading states, underlying assets, quote currencies, order limits, price limits, and contract-related information.

The Actor removes duplicate instruments, applies your selected record limit, and adds a collection timestamp and source URL to successful records.

### Key Features

- **Active Instrument Collection:** Retrieve available instrument information from BitMEX.
- **Symbol Filtering:** Collect records matching specific trading symbols.
- **Structured Market Data:** Access instrument identifiers, trading states, currencies, price limits, and contract details.
- **Duplicate Prevention:** Avoid repeated records using instrument IDs, with symbols as a fallback.
- **Flexible Data Exports:** Export results in JSON, CSV, Excel, and other supported formats.

### Input Configuration

Configure the Actor using the following parameters:

| Parameter | Description | Default |
|---|---|---|
| `mode` | Collection mode. Use `list` to retrieve instrument information. | `list` |
| `symbols` | Optional array of instrument symbols to include. Leave empty to collect all available instruments. | `[]` |
| `maxItems` | Maximum number of records to return. | `100` |
| `requestDelayMs` | Delay between requests, in milliseconds. | `1000` |

#### Input Example

Retrieve the available instrument list:

```json
{
  "mode": "list",
  "symbols": [],
  "maxItems": 100,
  "requestDelayMs": 1000
}
```

Collect specific instruments:

```json
{
  "mode": "list",
  "symbols": ["XRP_USDC", "XBT_USDT"],
  "maxItems": 100,
  "requestDelayMs": 1000
}
```

### Output Data

Each successfully collected instrument is saved as a structured dataset record.

#### Output Example

```json
{
  "symbol": "XRP_USDC",
  "rootSymbol": "XRP",
  "instrumentID": 3083,
  "state": "Unlisted",
  "typ": "IFXXXP",
  "listing": "2200-01-01T04:00:00.000Z",
  "front": "2200-01-01T04:00:00.000Z",
  "underlying": "XRP",
  "quoteCurrency": "USDC",
  "maxOrderQty": 1000000000000,
  "minPrice": 0.0001,
  "maxPrice": 10000,
  "lotSize": null,
  "tickSize": null,
  "multiplier": null,
  "underlyingToPositionMultiplier": null,
  "quoteToSettleMultiplier": null,
  "isQuanto": null,
  "isInverse": null,
  "initMargin": null,
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

#### Output Fields

| Field | Description |
|---|---|
| `symbol` | Instrument trading symbol. |
| `rootSymbol` | Root asset symbol. |
| `instrumentID` | Unique instrument identifier. |
| `state` | Instrument state reported by BitMEX. |
| `typ` | Instrument type. |
| `listing` | Instrument listing time. |
| `front` | Front contract time. |
| `underlying` | Underlying asset. |
| `quoteCurrency` | Currency used for quoting. |
| `maxOrderQty` | Maximum permitted order quantity. |
| `minPrice` | Minimum instrument price. |
| `maxPrice` | Maximum instrument price. |
| `lotSize` | Lot size information, when available. |
| `tickSize` | Minimum price increment, when available. |
| `multiplier` | Instrument multiplier, when available. |
| `underlyingToPositionMultiplier` | Underlying-to-position multiplier. |
| `quoteToSettleMultiplier` | Quote-to-settlement multiplier. |
| `isQuanto` | Indicates whether the instrument is a quanto contract, when available. |
| `isInverse` | Indicates whether the instrument is an inverse contract, when available. |
| `initMargin` | Initial margin requirement, when available. |
| `scrapedAt` | Timestamp when the record was collected. |

### Use Cases

- **Market Research:** Analyze available BitMEX instruments, trading states, and supported currencies.
- **Market Monitoring:** Refresh instrument information to track changes in available and unlisted symbols.
- **Trading Dashboards:** Integrate structured instrument details into dashboards and analytical tools.
- **Financial Data Analysis:** Build datasets for offline research and market comparisons.
- **Data Integration:** Export instrument records for further processing in Python, spreadsheets, or business intelligence platforms.

### Usage and Limits

- The Actor supports the `list` mode for collecting instrument information.
- Leave `symbols` empty to retrieve the full available list, or provide specific symbols to filter the results.
- The Actor collects instrument information from a single active-instrument listing response rather than historical market records.
- The default request delay is 1,000 milliseconds. A delay of approximately 1,000–2,000 milliseconds is a reasonable starting point for controlled usage.
- The maximum output is limited by the configured `maxItems` value and the number of instruments returned by the source.
- Actual data availability and response limits may vary depending on BitMEX's service conditions.

### Frequently Asked Questions

**1. What information does this Actor collect?**

It collects BitMEX instrument details, including trading symbols, identifiers, instrument states, currencies, price limits, contract-related fields, and collection timestamps.

**2. Can I collect only specific trading symbols?**

Yes. Add the desired symbols to the `symbols` array. Leave it empty to collect all instruments returned in the active instrument listing.

**3. Can I export the results to Excel or CSV?**

Yes. Apify supports exporting dataset results in JSON, CSV, Excel, and other formats.

**4. Can I schedule automatic data collection?**

Yes. You can configure Apify Schedules to run the Actor periodically and refresh your instrument dataset.

### Related Tools

Explore other BigiByte data collection tools:

- **Upbit Market Data Scraper** – Collect structured cryptocurrency ticker information from Upbit.
- **Gate.io Market Data Scraper** – Retrieve cryptocurrency trading pair prices and market statistics.
- **MEXC Market Data Scraper** – Collect cryptocurrency ticker and market information from MEXC.

Need a scraper tailored to your business requirements? BigiByte builds custom web scrapers, data extraction tools, and automation solutions to help you collect and organize the information you need.

Visit [BigiByte](https://bigibyte.com) to explore our services.

### Trademark Notice

BitMEX and its associated names, logos, and trademarks are the property of their respective owners. They are used solely to identify the source of the collected information. This Actor is an independent product and does not imply any affiliation, sponsorship, or endorsement by BitMEX.

### Disclaimer

This Actor is provided for informational and research purposes. Users are responsible for evaluating collected data before relying on it for financial, commercial, or other decisions.

### Is Web Scraping Legal?

This Actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal Data:** If collected information includes personal data, privacy laws such as GDPR and CCPA may apply. Collect and process such information responsibly.
- **Copyrighted Content:** Some website content may be protected by copyright. Check applicable permissions before reproducing or redistributing it.
- **Platform Terms and Rate Limits:** Respect BitMEX's terms of use, applicable restrictions, and reasonable request limits.

This information is provided for general guidance only and does not constitute legal advice.

For more information, read Apify's guide: [Is Web Scraping Legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to fetch. List loads active BitMEX instruments from the public API.

## `symbols` (type: `array`):

Optional symbol filter (for example XBTUSD). Leave empty to keep all active instruments, capped by maxItems.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait before each request. Raise if you see 429 responses.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "list",
  "symbols": [],
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "symbols": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/bitmex-market-data-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "symbols": [] }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/bitmex-market-data-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "symbols": []
}' |
apify call bigibyte/bitmex-market-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/bitmex-market-data-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wbLH90OxyUj1JssGJ/builds/h7FHWjYFJKE3Ezb8S/openapi.json
