Skip to main content
POST
/
v1beta1
/
download_trades
Download Trades
curl --request POST \
  --url https://traderapi.us-east-1.privatelink.preprod.polymarketexchange.com/api/v1beta1/download_trades \
  --header 'Content-Type: application/json' \
  --data '
{
  "accounts": [
    "<string>"
  ],
  "end_time": "2023-11-07T05:31:56Z",
  "start_time": "2023-11-07T05:31:56Z"
}
'
{
  "error": {
    "code": 123,
    "details": [
      {
        "@type": "<string>"
      }
    ],
    "message": "<string>"
  },
  "result": {}
}

Body

application/json

Request to download trades filtered using the given details as a csv.

accounts
string[]

Fully qualified resource account names to filter upon (ie: "firms/[firmid]/accounts/[accountid]").

end_time
string<date-time>

End time for the trades to be fetched.

start_time
string<date-time>

Start time for the trades to be fetched.

Response

bytes array of file stream.(streaming responses)

error
object
result
object