Operation Type (for Signing)
Request Body
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | User’s wallet address | 42trU9A5… |
“signature” | string | required | Cryptographic signature | 5j1Vy9Uq… |
“timestamp” | integer | required | Current timestamp in milliseconds | 1716200000000 |
”game” | string | required | Print product, set by market and cycle length: BTC_24H, BTC_7D, BTC_1M (30 days), ETH_24H, and so on | BTC_24H |
”deposit_amount” | string | required | Deposit in USDC, minimum 10 | 1000.00 |
”direction” | integer | required | 0 - long: the order opens a long if the price falls to the target1 - short: the order opens a short if the price rises to the target | 1 |
”strike_price” | string | required | Target price | 95000.00 |
”leverage” | string | required | Leverage, up to the market’s maximum | 2.0 |
”total_segments” | integer | optional | Number of cycles the order runs, 1 to 1000. If omitted, the order rolls over until you end it | 7 |
”idempotency_key” | string | optional | Full UUID string. Prevents duplicate orders | 550e8400-e29b-41d4-a716-446655440000 |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
“expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
”builder_code” | string | optional | Builder program code (3-16 alphanumeric characters). See below | MYCODE |
Builder codes
A builder code on a Print order pays its owner 10% of each premium of that order. The premium is the yield, and it is paid at the start of every cycle, so the reward applies to every roll-over. A later liquidation does not reverse it.- The user pays no fee for the code. The reward comes from Pacifica’s revenue.
- The user’s referrer earns nothing for an order that carries a builder code.
- The user must have approved a code from the same builder. The approval’s
max_fee_ratedoes not need to cover the code’s fee rate. - A code that belongs to the user’s own account or one of their subaccounts is ignored, and the order is placed without it.
Response
- Status 200: Order created successfully
game_account_address is the address of the new Print order.
- Status 400: Bad request
- Status 401: Unauthorized
- Status 409: Duplicate idempotency key
- Status 500: Internal server error