Skip to main content
Locks your deposit in a new Print order. See Placing & Managing Orders for how Print orders work.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”game”stringrequiredPrint product, set by market and cycle length: BTC_24H, BTC_7D, BTC_1M (30 days), ETH_24H, and so onBTC_24H
”deposit_amount”stringrequiredDeposit in USDC, minimum 101000.00
”direction”integerrequired0 - long: the order opens a long if the price falls to the target
1 - short: the order opens a short if the price rises to the target
1
”strike_price”stringrequiredTarget price95000.00
”leverage”stringrequiredLeverage, up to the market’s maximum2.0
”total_segments”integeroptionalNumber of cycles the order runs, 1 to 1000. If omitted, the order rolls over until you end it7
”idempotency_key”stringoptionalFull UUID string. Prevents duplicate orders550e8400-e29b-41d4-a716-446655440000
”agent_wallet”stringoptionalAgent wallet address69trU9A5…
“expiry_window”integeroptionalSignature expiry in milliseconds30000
”builder_code”stringoptionalBuilder program code (3-16 alphanumeric characters). See belowMYCODE
”fee_rate”decimal stringoptionalSign with builder_code. Use zero through the user’s approved maximum, inclusive. Omit to use the code’s default rate.”0.0002” (0.02%)

Builder codes

A builder code on a Print order earns its owner two things:
  • 10% of each premium of the 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 reward comes from Pacifica’s revenue, and the user keeps the full premium.
  • The code’s builder fee on the perp position that the order delivers, charged like the fee on an order fill. The user pays this fee from the delivered margin.
Other rules:
  • The user must have approved the code with a max_fee_rate that covers the signed fee_rate, or the code’s default rate if omitted. This rate applies only to the delivery fee, not the premium share.
  • The user’s referrer earns nothing for an order that carries a builder code.
  • A code that belongs to the user’s own account or one of their subaccounts is ignored, and the order is placed without it.
See the Builder Program for how to get a code.

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

Code Example (Python)