PearPear

Create saved basket

Save a basket snapshot under a name (unique per trade account, case-insensitive)

POST
/saved-baskets
x-api-key<token>

In: header

Header Parameters

X-Trade-Account-Id*string

UUID of the trade account the request acts on. Must belong to the authenticated user.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Save the current basket under a name

Response Body

application/json

curl -X POST "https://example.com/saved-baskets" \  -H "X-Trade-Account-Id: 3fa85f64-5717-4562-b3fc-2c963f66afa6" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "legs": [      {        "symbol": "BTC",        "side": "BUY",        "weight": 1      }    ]  }'
{  "basket": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "name": "string",    "legs": [      {        "symbol": "BTC",        "side": "BUY",        "weight": 1      }    ],    "createdAt": "string",    "updatedAt": "string"  }}