# USDT P2P Rates Scraper - Mid Price, Spread, Depth (`bonpleincapital/p2p-usdt-rates-bybit`) Actor

Bybit P2P USDT rates scraper for NGN, BDT, PKR, VND: mid price, spread, depth and premium vs official rate as JSON/CSV. Public adverts only, no merchant names. Created with AI.

License: personal use only; resale and redistribution prohibited.
Created with the help of artificial intelligence.

- **URL**: https://apify.com/bonpleincapital/p2p-usdt-rates-bybit.md
- **Developed by:** [Bon Plein Capital](https://apify.com/bonpleincapital) (community)
- **Categories:** Business, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 currency summaries

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 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

## P2P USDT Rates - Bybit NGN BDT PKR VND

**P2P USDT Rates** is a Bybit P2P price tracker: it reads the public P2P adverts for USDT against the Nigerian naira (NGN), Bangladeshi taka (BDT), Pakistani rupee (PKR) and Vietnamese dong (VND), and returns for each currency the best and median buy and sell price, the spread and the depth. It is built for money changers, traders and remittance teams who want the real street USDT rate as clean JSON, CSV or Excel, instead of checking the app by hand.

### What can this Actor do?

- Read the top public Bybit P2P adverts to buy and to sell USDT for NGN, BDT, PKR and VND.
- Compute the best price, the median price, the buy/sell spread (in fiat and in %) and the USDT depth available on each side.
- List the top adverts with price, available USDT, order limits and the merchant completion rate. Merchant names are not collected.
- Run on a schedule from Apify to build your own price history, and send it to Google Sheets, Make, Zapier or n8n.
- One run with the default input costs a few cents on the Apify free plan.

### How to use it

1. Click **Try for free** and open the **Input** tab.
2. Choose the fiat currencies (NGN, BDT, PKR, VND). All four are prefilled.
3. Set how many adverts to read per side, then click **Start**.
4. Download the results from the **Output** tab, or call the Actor from the API. Schedule it every hour to follow the rate over time.

### Input

```json
{
  "currencies": ["NGN", "PKR"],
  "adsPerSide": 10,
  "topAds": 5,
  "useProxy": false,
  "maxItems": 4
}
```

`useProxy` routes calls through Apify residential proxy. It is off by default, and the Actor retries through a proxy on its own if the direct call returns nothing.

### Output

One dataset item per currency:

```json
{
  "fiat": "NGN",
  "asset": "USDT",
  "exchange": "Bybit P2P",
  "buy_best_price": 1480.5,
  "buy_median_price": 1483.2,
  "buy_depth_usdt": 25400.0,
  "sell_best_price": 1465.0,
  "sell_median_price": 1462.1,
  "sell_depth_usdt": 18300.0,
  "spread": 15.5,
  "spread_pct": 1.058,
  "mid_price": 1472.75,
  "official_rate": 1455.2,
  "premium_vs_official_pct": 1.206,
  "median_spread_pct": 1.46,
  "market_status": "normal",
  "buy_ads": [{"price": 1480.5, "available_usdt": 900.0, "min_order": 10000, "max_order": 1332000, "completion_rate_pct": 98, "orders_30d": 412}],
  "sell_ads": [],
  "scraped_at": "2026-11-18T10:00:00+00:00"
}
```

### How much does it cost?

This Actor uses **pay per event** pricing: you pay one `result` event per currency summary, and nothing when nothing is produced. 1,000 results cost 1,000 `result` events at the price shown in the **Pricing** tab. With four currencies per run, that is 250 full runs. Apify's free plan gives monthly credits to try it. Proxy traffic, if you enable it, is billed by Apify separately.

### FAQ

#### Which market does it read?

Public Bybit P2P adverts for USDT. It does not read Binance P2P and it does not use any account or login.

#### Is it legal to use this Actor?

The Actor only reads public adverts, collects no merchant names and no private data. You are responsible for lawful use of the results, including the GDPR if you combine them with personal data.

#### Why is the price different from the official rate?

P2P prices include a premium or discount set by merchants. The spread and depth fields let you judge how liquid the market is. Each result now carries `official_rate` (USD to fiat, from a free public FX feed, USDT treated as 1 USD) and `premium_vs_official_pct`, the gap between the P2P mid price and that rate. If the feed is unreachable both fields are `null`; nothing is guessed. Market data only, no financial advice.

#### What if the run returns no result?

Bybit may temporarily block or limit a request. Retry with `useProxy` on, or open an issue in the **Issues** tab with the run link.

#### Can I use it through the API?

Yes. Every run can be started and read through the Apify API and its Python and JavaScript clients.

***

Created with the help of artificial intelligence.

# Changelog

This Actor's version history is a separate document: https://apify.com/bonpleincapital/p2p-usdt-rates-bybit/changelog.md

# Actor input Schema

## `currencies` (type: `array`):

Fiat currencies to price against USDT. Supported: NGN, BDT, PKR, VND.

## `adsPerSide` (type: `integer`):

How many top adverts to read for buying and for selling (5 to 20).

## `topAds` (type: `integer`):

How many adverts to include in the buy_ads and sell_ads lists.

## `useProxy` (type: `boolean`):

Route requests through Apify residential proxy (extra proxy cost). Off by default; the Actor retries with a proxy by itself if the direct call is empty.

## `maxItems` (type: `integer`):

Stop after this many currency summaries.

## Actor input object example

```json
{
  "currencies": [
    "NGN",
    "PKR"
  ],
  "adsPerSide": 10,
  "topAds": 5,
  "useProxy": false,
  "maxItems": 4
}
```

# Actor output Schema

## `results` (type: `string`):

One dataset item per result, shown in the Overview view.

# 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 = {
    "currencies": [
        "NGN",
        "PKR",
        "BDT",
        "VND"
    ],
    "adsPerSide": 10,
    "topAds": 5,
    "maxItems": 4
};

// Run the Actor and wait for it to finish
const run = await client.actor("bonpleincapital/p2p-usdt-rates-bybit").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 = {
    "currencies": [
        "NGN",
        "PKR",
        "BDT",
        "VND",
    ],
    "adsPerSide": 10,
    "topAds": 5,
    "maxItems": 4,
}

# Run the Actor and wait for it to finish
run = client.actor("bonpleincapital/p2p-usdt-rates-bybit").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 '{
  "currencies": [
    "NGN",
    "PKR",
    "BDT",
    "VND"
  ],
  "adsPerSide": 10,
  "topAds": 5,
  "maxItems": 4
}' |
apify call bonpleincapital/p2p-usdt-rates-bybit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bonpleincapital/p2p-usdt-rates-bybit"
        }
    }
}
```

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/LrnhIVk8dmy5nVYLZ/builds/YCZVbYnhsf4SVD1ya/openapi.json
