Paradex Trades API
The Trades API from Paradex — 1 operation(s) for trades.
The Trades API from Paradex — 1 operation(s) for trades.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/paradex:paradex-trades-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Paradex Trades API
version: 1.142.2
contact: {}
description: 'Operations tagged Trades across 2 of this provider''s published API definitions: paradex-openapi-prod.json, paradex-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.prod.paradex.trade/v1
tags:
- name: Trades
paths:
/trades:
get:
description: 'Returns a paginated list of trades that have occurred on the exchange.
Default page size is 100, maximum is 1000.
The `side` field in the response indicates the taker side of the trade.
`block_id` appears on **block-trade prints only**. A block trade is
published as one print per leg, and the block id every leg shares is what
lets a client reassemble the package. No other kind of print carries the
field.
Note that the legs of one block trade are ordered by fill id like any other
print, so a package can straddle a page boundary. `base_asset` also resolves
to that underlying''s OPTION markets only, so a package''s perp delta hedge is
not among the results — request the perp''s own market to see it.
Pass `trade_type=BLOCK_TRADE` to return only block-trade prints (the legs of
RFQ and block executions). It is the only value accepted; omit the parameter
for every trade type. It is also the one case where `market` and
`base_asset` may both be omitted: the page then covers every market on the
exchange, perps included, so a package arrives with its delta hedge. A later
page of any of these needs only its `cursor`: the scope a page was opened
with travels inside it.
### Example
```http
GET /trades?market=BTC-USD-PERP&page_size=100
```
```http
GET /trades?base_asset=BTC&trade_type=BLOCK_TRADE&page_size=100
```
```http
GET /trades?trade_type=BLOCK_TRADE&page_size=100
```
This endpoint supports cursor-based pagination for efficiently traversing large
result sets.'
tags:
- Trades
summary: Trade tape
operationId: trades
parameters:
- example: BTC
description: Base asset symbol; returns trades across all active options (OPTION and PERP_OPTION) for this base asset. Mutually exclusive with market. One of the two is required unless trade_type=BLOCK_TRADE.
name: base_asset
in: query
schema:
type: string
- description: Returns the ‘next’ paginated page.
name: cursor
in: query
schema:
type: string
- description: End Time (unix time millisecond)
name: end_at
in: query
schema:
type: integer
- example: BTC-USD-PERP
description: Market name. Mutually exclusive with base_asset. One of the two is required unless trade_type=BLOCK_TRADE.
name: market
in: query
schema:
type: string
- description: Limit the number of responses in the page
name: page_size
in: query
schema:
type: integer
minimum: 1
maximum: 1000
default: 100
- description: Start Time (unix time millisecond)
name: start_at
in: query
schema:
type: integer
- example: BLOCK_TRADE
description: Narrows the page to one trade type. Only BLOCK_TRADE is supported; omit for every type. With BLOCK_TRADE, market and base_asset may both be omitted for an exchange-wide page.
name: trade_type
in: query
schema:
type: string
enum:
- BLOCK_TRADE
responses:
'200':
description: OK
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/responses.PaginatedAPIResults'
- type: object
properties:
results:
type: array
items:
$ref: '#/components/schemas/responses.TradeResult'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/responses.ApiError'
servers:
- url: https://api.prod.paradex.trade/v1
components:
schemas:
responses.FillType:
type: string
enum:
- LIQUIDATION
- UNWIND_TRANSFER
- FILL
- SETTLE_MARKET
- RPI
- BLOCK_TRADE
x-enum-varnames:
- FillTypeLiquidation
- FillTypeUnwindTransfer
- FillTypeFill
- FillTypeSettleMarket
- FillTypeRPI
- FillTypeBlockTrade
responses.PaginatedAPIResults:
type: object
properties:
next:
description: The pointer to fetch next set of records (null if there are no records left)
type: string
example: eyJmaWx0ZXIiMsIm1hcmtlciI6eyJtYXJrZXIiOiIxNjc1NjUwMDE3NDMxMTAxNjk5N=
prev:
description: The pointer to fetch previous set of records (null if there are no records left)
type: string
example: eyJmaWx0ZXIiOnsiTGltaXQiOjkwfSwidGltZSI6MTY4MTY3OTgzNzk3MTMwOTk1MywibWFya2VyIjp7Im1zMjExMD==
results:
description: Array of paginated results
type: array
items:
type: object
responses.ErrorCode:
type: string
enum:
- VALIDATION_ERROR
- BINDING_ERROR
- INTERNAL_ERROR
- NOT_FOUND
- SERVICE_UNAVAILABLE
- INVALID_REQUEST_PARAMETER
- ORDER_ID_NOT_FOUND
- ORDER_IS_CLOSED
- ORDER_IS_NOT_OPEN
- INVALID_ORDER_SIZE
- CLIENT_ORDER_ID_NOT_FOUND
- DUPLICATED_CLIENT_ID
- INVALID_SYMBOL
- INVALID_TOKEN
- INVALID_ETHEREUM_ADDRESS
- INVALID_ETHEREUM_SIGNATURE
- INVALID_STARKNET_ADDRESS
- INVALID_STARKNET_SIGNATURE
- STARKNET_SIGNATURE_VERIFICATION_FAILED
- ETHEREUM_SIGNER_MISMATCH
- ETHEREUM_HASH_MISMATCH
- NOT_ONBOARDED
- INVALID_TIMESTAMP
- INVALID_BLOCK_EXPIRATION
- ACCOUNT_NOT_FOUND
- MEDIA_NOT_FOUND
- INVALID_ORDER_SIGNATURE
- PUBLIC_KEY_INVALID
- UNAUTHORIZED_ETHEREUM_ADDRESS
- UNAUTHORIZED_ERROR
- ETHEREUM_ADDRESS_ALREADY_ONBOARDED
- EVM_ADDRESS_ALREADY_ONBOARDED
- MARKET_NOT_FOUND
- ALLOWLIST_ENTRY_NOT_FOUND
- USERNAME_IN_USE
- GEO_IP_BLOCK
- ETHEREUM_ADDRESS_BLOCKED
- PROGRAM_NOT_FOUND
- PROGRAM_NOT_SUPPORTED
- INVALID_DASHBOARD
- MARKET_NOT_OPEN
- MARKET_NOT_SETTLED
- INVALID_REFERRAL_CODE
- REQUEST_NOT_ALLOWED
- PARENT_ADDRESS_ALREADY_ONBOARDED
- INVALID_PARENT_ACCOUNT
- INVALID_VAULT_OPERATOR_CHAIN
- VAULT_OPERATOR_ALREADY_ONBOARDED
- VAULT_NAME_IN_USE
- VAULT_NOT_FOUND
- VAULT_STRATEGY_NOT_FOUND
- VAULT_LIMIT_REACHED
- VAULT_DATA_PRIVATE
- BATCH_SIZE_OUT_OF_RANGE
- ISOLATED_MARKET_ACCOUNT_MISMATCH
- NO_ACCESS_TO_MARKET
- POINTS_SUMMARY_NOT_FOUND
- ALGO_ID_NOT_FOUND
- INVALID_DERIVATION_PATH
- PROFILE_STATS_NOT_FOUND
- INVALID_CHAIN
- INVALID_LAYERSWAP_SWAP
- INVALID_DEPOSIT_ADDRESS
- SOCIAL_USERNAME_IN_USE
- INVALID_OAUTH_REQUEST
- RPI_ACCOUNT_NOT_WHITELISTED
- SYSTEM_STATUS_POST_ONLY
- SYSTEM_STATUS_CANCEL_ONLY
- INVALID_MARKETING_CODE
- OFFER_NOT_FOUND
- MARKET_MARGIN_RESTRICTED
- NOT_UNIQUE
- ACCOUNT_ALREADY_REFERRED
- ONBOARDING_PERIOD_EXPIRED
- ONBOARDING_RATE_LIMITED
- RFQ_CREATE_BUDGET_EXCEEDED
- SUBACCOUNTS_LIMIT_EXCEEDED
- INSUFFICIENT_MIN_CHAIN_BALANCE
- INSUFFICIENT_EVM_BALANCE
- PORTFOLIO_MARGIN_ONBOARDING_DISABLED
- PORTFOLIO_MARGIN_INVALID_ACCOUNT_KIND
- EVM_VAULT_OPERATORS_DISABLED
- VAULT_OPERATOR_OWNER_PROOF_REQUIRED
- INVALID_EVM_SIGNATURE
- EVM_SIGNATURE_VERIFICATION_FAILED
- INVALID_SUBKEY
- SUBKEY_NOT_ACTIVATABLE
- SUBKEY_REVOKED
- TOKEN_LIMIT_REACHED
- INVALID_TOKEN_SCOPE
- IP_NOT_ALLOWED
- INSUFFICIENT_TRANSFERRABLE_XP
- TRANSFER_LIMIT_REACHED
- XP_TRANSFERS_DISABLED
- BLOCK_TRADE_NOT_FOUND
- BLOCK_TRADE_NOT_ENABLED
- BLOCK_TRADE_EXPIRED
- BLOCK_TRADE_ALREADY_CANCELLED
- BLOCK_TRADE_INVALID_STATUS
- BLOCK_TRADE_UNAUTHORIZED
- BLOCK_TRADE_MISSING_TRADES
- BLOCK_TRADE_MISSING_SIGNERS
- BLOCK_TRADE_MISSING_SIGNATURE
- BLOCK_TRADE_ACCOUNT_MISMATCH
- BLOCK_TRADE_INVALID_SIGNATURE
- BLOCK_TRADE_SIGNER_KEY_UNAUTHORIZED
- BLOCK_TRADE_REPLAYED_SIGNATURE
- BLOCK_TRADE_SELF_TRADE
- OFFER_ALREADY_CANCELLED
- OFFER_INVALID_STATUS
- OFFER_UNAUTHORIZED
- OFFER_PARENT_MISMATCH
- OFFER_PARENT_NOT_ACCEPTING
- PORTFOLIO_MARGIN_CONFIG_NOT_FOUND
- MARGIN_CONFIG_NOT_FOUND
- MMP_CONFIG_INVALID
- MMP_NOT_ENABLED
- MMP_MIN_FREEZE_NOT_ELAPSED
- MMP_NOT_CONFIGURED
- RFQ_VENUE_UNAVAILABLE
x-enum-comments:
ErrorCodeString_SignerMismatch: '#nosec G101'
x-enum-varnames:
- ErrorCode_Validation
- ErrorCode_Binding
- ErrorCode_InternalError
- ErrorCode_NotFound
- ErrorCode_ServiceUnavailable
- ErrorCodeString_InvalidParameter
- ErrorCodeString_OrderIdNotFound
- ErrorCodeString_OrderIsClosed
- ErrorCodeString_OrderIsNotOpen
- ErrorCodeString_InvalidSizeForModifyOrder
- ErrorCodeString_ClientOrderIdNotFound
- ErrorCodeString_DuplicatedClientOrderId
- ErrorCodeString_InvalidSymbol
- ErrorCodeString_InvalidToken
- ErrorCodeString_BadEthAddress
- ErrorCodeString_BadEthSignature
- ErrorCodeString_BadStarkNetAddress
- ErrorCodeString_BadStarkNetSignature
- ErrorCodeString_StarknetSigVerificationFailed
- ErrorCodeString_SignerMismatch
- ErrorCodeString_HashMismatch
- ErrorCodeString_NotOnboarded
- ErrorCodeString_BadTimestamp
- ErrorCodeString_BadExpiration
- ErrorCodeString_AccountIdNotFound
- ErrorCodeString_MediaNotFound
- ErrorCodeString_InvalidOrderSignature
- ErrorCodeString_BadPublicKey
- ErrorCodeString_UnauthorizedEthAddress
- ErrorCodeString_UnauthorizedError
- ErrorCodeString_EthAddressAlreadyOnboarded
- ErrorCodeString_EvmAddressAlreadyOnboarded
- ErrorCodeString_MarketNotFound
- ErrorCodeString_AllowlistNotFound
- ErrorCodeString_UsernameInUse
- ErrorCodeString_GeoIPBlock
- ErrorCodeString_EthAddressBlocked
- ErrorCodeString_ProgramNotFound
- ErrorCodeString_ProgramNotSupported
- ErrorCodeString_InvalidDashboard
- ErrorCodeString_MarketNotOpen
- ErrorCodeString_MarketNotSettled
- ErrorCodeString_InvalidReferralCode
- ErrorCodeString_RequestNotAllowed
- ErrorCodeString_ParentAddressAlreadyOnboarded
- ErrorCodeString_InvalidParentAccount
- ErrorCodeString_InvalidVaultOperatorChain
- ErrorCodeString_VaultOperatorAlreadyOnboarded
- ErrorCodeString_VaultNameInUse
- ErrorCodeString_VaultNotFound
- ErrorCodeString_VaultStrategyNotFound
- ErrorCodeString_VaultLimitReached
- ErrorCodeString_VaultDataPrivate
- ErrorCodeString_BatchSizeOutOfRange
- ErrorCodeString_IsolatedMarketAccountMismatch
- ErrorCodeString_NoAccessToMarket
- ErrorCodeString_PointsSummaryNotFound
- ErrorCodeString_AlgoIdNotFound
- ErrorCodeString_InvalidDerivationPath
- ErrorCodeString_ProfileStatsNotFound
- ErrorCodeString_InvalidChain
- ErrorCodeString_InvalidLayerswapSwap
- ErrorCodeString_InvalidDepositAddress
- ErrorCodeString_SocialUsernameInUse
- ErrorCodeString_InvalidOAuthRequest
- ErrorCodeString_RPIAccountNotWhitelisted
- ErrorCodeString_SystemStatusPostOnly
- ErrorCodeString_SystemStatusCancelOnly
- ErrorCodeString_InvalidMarketingCode
- ErrorCodeString_OfferNotFound
- ErrorCodeString_MarketMarginRestricted
- ErrorCodeString_NotUnique
- ErrorCodeString_AccountAlreadyReferred
- ErrorCodeString_OnboardingPeriodExpired
- ErrorCodeString_OnboardingRateLimited
- ErrorCodeString_RfqCreateBudgetExceeded
- ErrorCodeString_SubaccountsLimitExceeded
- ErrorCodeString_InsufficientMinChainBalance
- ErrorCodeString_InsufficientEvmBalance
- ErrorCodeString_PortfolioMarginOnboardingDisabled
- ErrorCodeString_PortfolioMarginInvalidAccountKind
- ErrorCodeString_EvmVaultOperatorsDisabled
- ErrorCodeString_VaultOperatorOwnerProofRequired
- ErrorCodeString_BadEvmSignature
- ErrorCodeString_EvmSigVerificationFailed
- ErrorCodeString_InvalidSubkey
- ErrorCodeString_SubkeyNotActivatable
- ErrorCodeString_SubkeyRevoked
- ErrorCodeString_TokenLimitReached
- ErrorCodeString_InvalidTokenScope
- ErrorCodeString_IPNotAllowed
- ErrorCodeString_InsufficientTransferrableXP
- ErrorCodeString_TransferLimitReached
- ErrorCodeString_XPTransfersDisabled
- ErrorCodeString_BlockTradeNotFound
- ErrorCodeString_BlockTradeNotEnabled
- ErrorCodeString_BlockTradeExpired
- ErrorCodeString_BlockTradeAlreadyCancelled
- ErrorCodeString_BlockTradeInvalidStatus
- ErrorCodeString_BlockTradeUnauthorized
- ErrorCodeString_BlockTradeMissingTrades
- ErrorCodeString_BlockTradeMissingSigners
- ErrorCodeString_BlockTradeMissingSignature
- ErrorCodeString_BlockTradeAccountMismatch
- ErrorCodeString_BlockTradeInvalidSignature
- ErrorCodeString_BlockTradeSignerKeyUnauthorized
- ErrorCodeString_BlockTradeReplayedSignature
- ErrorCodeString_BlockTradeSelfTrade
- ErrorCodeString_OfferAlreadyCancelled
- ErrorCodeString_OfferInvalidStatus
- ErrorCodeString_OfferUnauthorized
- ErrorCodeString_OfferParentMismatch
- ErrorCodeString_OfferParentNotAccepting
- ErrorCodeString_PortfolioMarginConfigNotFound
- ErrorCodeString_MarginConfigNotFound
- ErrorCodeString_MmpConfigInvalid
- ErrorCodeString_MmpNotEnabled
- ErrorCodeString_MmpMinFreezeNotElapsed
- ErrorCodeString_MmpNotConfigured
- ErrorCodeString_RfqVenueUnavailable
responses.OrderSide:
type: string
enum:
- BUY
- SELL
x-enum-varnames:
- OrderSideBuy
- OrderSideSell
responses.ApiError:
type: object
properties:
data:
description: any additional data related to the error
type: object
error:
description: unique immutable string identifier for specific error
allOf:
- $ref: '#/components/schemas/responses.ErrorCode'
example: NOT_ONBOARDED
message:
description: detailed description of error and how to address it
type: string
example: User has never called /onboarding endpoint
responses.TradeResult:
type: object
properties:
block_id:
description: Groups the legs settled together in one block execution, one id per accepted offer for offer-based blocks. Empty for non-block trades. Delivered on the JSON encoding only, not the SBE binary encoding.
type: string
example: '1681497002041000000'
created_at:
description: Unix Millisecond timestamp at which trade was done
type: integer
example: 1681497002041
id:
description: Unique Trade ID per TradeType
type: string
example: '12345643'
market:
description: Market for which trade was done
type: string
example: BTC-USD-PERP
price:
description: Trade price
type: string
example: '30001.2'
side:
description: Taker side
allOf:
- $ref: '#/components/schemas/responses.OrderSide'
size:
description: Trade size
type: string
example: '0.01'
trade_type:
description: 'Trade type: FILL, LIQUIDATION, RPI, UNWIND_TRANSFER, SETTLE_MARKET or BLOCK_TRADE'
allOf:
- $ref: '#/components/schemas/responses.FillType'
example: FILL
securitySchemes:
BearerToken:
type: apiKey
name: Authorization
in: header
x-refined-from:
- paradex-openapi-prod.json
- paradex-openapi.yml
x-hideTryItPanel: true
x-provenance:
method: harvested
publisher: Paradex
source: https://docs.paradex.trade/openapi/rest-endpoints.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)