---
updatedAt: 2026-10-28T12:24:00.000Z
agentTools:
  projectIndex: https://apidocliquidity.readme.io/llms.txt
---

# Query User's Portfolio Trading Volume

## Description

This endpoint returns **portfolio-level** trading volume statistics for a specified time range.

The trading volume data is updated once per day and calculated on a natural-day basis (00:00–00:00).

### The response includes:

Aggregated summary fields: Trading volume (USDT-denominated) grouped by exchange and business type, such as:

* `okxSpotVolUsd`
* `okxPerpVolUsd`
* `binanceSpotVolUsd`
* `binancePerpVolUsd`

Detailed breakdown (`details`): A granular list grouped by `exchange + businessType + symbol`, including:

* `executedAmount` — Total executed trading volume (USDT)
* `totalTradingFee` — Total accumulated trading fees
* `totalRpnl` — Total realized PnL (Realized Profit & Loss)

## Time Range Rules (Important)

The `begin` and `end` parameters must be provided as Unix timestamps in milliseconds (ms).

To ensure consistent daily aggregation:

* If `begin` is not at 00:00:00, it will be automatically rounded down to 00:00:00 of that day.
* If `end` is not at 00:00:00, it will be automatically aligned to the daily boundary (natural-day cutoff at 00:00:00).

The response fields `begin` and `end` are returned in **yyyyMMdd** format and reflect the aligned date range used for calculation.

## Permission

* Access to this endpoint requires a **Main or Sub Portfolio API key** with READ permission.

## Rate Limit

10 requests per 1 hour.

## Request

[block:parameters]
{
  "data": {
    "h-0": "Field",
    "h-1": "Type",
    "h-2": "Mandatory",
    "h-3": "Description",
    "0-0": "`symList`",
    "0-1": "`String`",
    "0-2": "N",
    "0-3": "Trading pair unique identifier. A maximum of **5 symbols** can be specified in a single request.  \n  \nIf symList is provided, it overrides the `businessType` and `exchange` parameters, and those filters will not take effect.  \n  \nExample: `BINANCE_PERP_BTC_USDT`, `OKX_PERP_BTC_USDT`",
    "1-0": "`exchange`",
    "1-1": "`String`",
    "1-2": "N",
    "1-3": "Exchange filter. Supported values: `BINANCE`, `OKX`",
    "2-0": "`businessType`",
    "2-1": "`String`",
    "2-2": "N",
    "2-3": "Business type filter. Supported values: `SPOT`, `PERP`",
    "3-0": "`begin`",
    "3-1": "`String`",
    "3-2": "Y",
    "3-3": "Start date/time (automatically aligned to 00:00:00 of that day)",
    "4-0": "`end`",
    "4-1": "`String`",
    "4-2": "Y",
    "4-3": "End date/time (automatically aligned to daily boundary)"
  },
  "cols": 4,
  "rows": 5,
  "align": [
    "left",
    "left",
    "left",
    "left"
  ]
}
[/block]

## Response

| Field               | Type     | Description                                                              |
| :------------------ | :------- | :----------------------------------------------------------------------- |
| `begin`             | `String` | Start date/time (automatically aligned to 00:00:00 of that day)          |
| `end`               | `String` | End date/time (automatically aligned to daily boundary)                  |
| `okxSpotVolUsd`     | `String` | OKX spot trading volume in USDT                                          |
| `okxPerpVolUsd`     | `String` | OKX perp trading volume in USDT                                          |
| `binanceSpotVolUsd` | `String` | Binance spot trading volume in USDT                                      |
| `binancePerpVolUsd` | `String` | Binance perp trading volume in USDT                                      |
| `details`           | `Object` | List of trading amount detail                                            |
| > `exchange`        | `String` | `BINANCE`, `OKX`, `EDX`                                                  |
| > `businessType`    | `String` | `SPOT`, `PERP`. `MARGIN` Trading volume is included in the `SPOT` Volume |
| > `symbol`          | `String` | Trading pair unique identifier.                                          |
| > `executedAmount`  | `String` | Trading amount in USDT                                                   |
| > `totalTradingFee` | `String` | Total trading fee in USDT.                                               |
| > `totalRpnl`       | `String` | Total realized PNL in USDT.                                              |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "ltp-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.liquiditytech.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v1/trading/user/portfolio/tradingStats": {
      "get": {
        "summary": "Query User's Portfolio Trading Volume",
        "description": "",
        "operationId": "query-users-portfolio-tradingstats",
        "parameters": [
          {
            "name": "symList",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "businessType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exchange",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "begin",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": 200000,\n  \"message\": \"Success\",\n  \"data\": {\n    \"begin\": \"20260210\",\n    \"end\": \"20260212\",\n    \"okxSpotVolUsd\": \"0\",\n    \"okxPerpVolUsd\": \"112322.6315\",\n    \"binanceSpotVolUsd\": \"0\",\n    \"binancePerpVolUsd\": \"12208.15853\",\n    \"details\": [\n      {\n        \"exchange\": \"BINANCE\",\n        \"businessType\": \"PERP\",\n        \"symbol\": \"BINANCE_PERP_ETH_USDT\",\n        \"executedAmount\": \"11004.20603\",\n        \"totalTradingFee\": \"3.85147236\",\n        \"totalRpnl\": \"0.04957\"\n      },\n      {\n        \"exchange\": \"OKX\",\n        \"businessType\": \"PERP\",\n        \"symbol\": \"OKX_PERP_ETH_USDT\",\n        \"executedAmount\": \"112322.6315\",\n        \"totalTradingFee\": \"3.92392276\",\n        \"totalRpnl\": \"0.00811\"\n      },\n      {\n        \"exchange\": \"BINANCE\",\n        \"businessType\": \"PERP\",\n        \"symbol\": \"BINANCE_PERP_BTC_USDT\",\n        \"executedAmount\": \"1203.9525\",\n        \"totalTradingFee\": \"0.42138338\",\n        \"totalRpnl\": \"0.1961\"\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 200000,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Success"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "begin": {
                          "type": "string",
                          "example": "20260210"
                        },
                        "end": {
                          "type": "string",
                          "example": "20260212"
                        },
                        "okxSpotVolUsd": {
                          "type": "string",
                          "example": "0"
                        },
                        "okxPerpVolUsd": {
                          "type": "string",
                          "example": "112322.6315"
                        },
                        "binanceSpotVolUsd": {
                          "type": "string",
                          "example": "0"
                        },
                        "binancePerpVolUsd": {
                          "type": "string",
                          "example": "12208.15853"
                        },
                        "details": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "exchange": {
                                "type": "string",
                                "example": "BINANCE"
                              },
                              "businessType": {
                                "type": "string",
                                "example": "PERP"
                              },
                              "symbol": {
                                "type": "string",
                                "example": "BINANCE_PERP_ETH_USDT"
                              },
                              "executedAmount": {
                                "type": "string",
                                "example": "11004.20603"
                              },
                              "totalTradingFee": {
                                "type": "string",
                                "example": "3.85147236"
                              },
                              "totalRpnl": {
                                "type": "string",
                                "example": "0.04957"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": 200000,\n  \"message\": \"Success\",\n  \"data\": {\n    \"begin\": \"20260210\",\n    \"end\": \"20260212\",\n    \"okxSpotVolUsd\": \"0\",\n    \"okxPerpVolUsd\": \"112322.6315\",\n    \"binanceSpotVolUsd\": \"0\",\n    \"binancePerpVolUsd\": \"12208.15853\",\n    \"details\": [\n      {\n        \"exchange\": \"BINANCE\",\n        \"businessType\": \"PERP\",\n        \"symbol\": \"BINANCE_PERP_ETH_USDT\",\n        \"executedAmount\": \"11004.20603\",\n        \"totalTradingFee\": \"3.85147236\",\n        \"totalRpnl\": \"0.04957\"\n      },\n      {\n        \"exchange\": \"OKX\",\n        \"businessType\": \"PERP\",\n        \"symbol\": \"OKX_PERP_ETH_USDT\",\n        \"executedAmount\": \"112322.6315\",\n        \"totalTradingFee\": \"3.92392276\",\n        \"totalRpnl\": \"0.00811\"\n      },\n      {\n        \"exchange\": \"BINANCE\",\n        \"businessType\": \"PERP\",\n        \"symbol\": \"BINANCE_PERP_BTC_USDT\",\n        \"executedAmount\": \"1203.9525\",\n        \"totalTradingFee\": \"0.42138338\",\n        \"totalRpnl\": \"0.1961\"\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 200000,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Success"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "begin": {
                          "type": "string",
                          "example": "20260210"
                        },
                        "end": {
                          "type": "string",
                          "example": "20260212"
                        },
                        "okxSpotVolUsd": {
                          "type": "string",
                          "example": "0"
                        },
                        "okxPerpVolUsd": {
                          "type": "string",
                          "example": "112322.6315"
                        },
                        "binanceSpotVolUsd": {
                          "type": "string",
                          "example": "0"
                        },
                        "binancePerpVolUsd": {
                          "type": "string",
                          "example": "12208.15853"
                        },
                        "details": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "exchange": {
                                "type": "string",
                                "example": "BINANCE"
                              },
                              "businessType": {
                                "type": "string",
                                "example": "PERP"
                              },
                              "symbol": {
                                "type": "string",
                                "example": "BINANCE_PERP_ETH_USDT"
                              },
                              "executedAmount": {
                                "type": "string",
                                "example": "11004.20603"
                              },
                              "totalTradingFee": {
                                "type": "string",
                                "example": "3.85147236"
                              },
                              "totalRpnl": {
                                "type": "string",
                                "example": "0.04957"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```