Pacifica
  • Getting Started
    • Closed Alpha Guide
      • Link To Guide PDF
    • Closed Alpha Trading Competition
  • Trading on Pacifica
    • Overview
    • Contract Specifications
      • Oracle Price & Mark Price
      • Settlement Mechanism
    • Order Types
      • Market Order
      • Limit Order
      • Order Rules & Constraints
    • Margin & Leverage
    • Funding Rates
    • Liquidations
  • About Pacifica
  • API Documentation
    • API
      • REST API
        • Markets
          • Get market info
          • Get prices
          • Get kline (candle) data
          • Get recent trades
        • Account
          • Get account info
          • Get account settings
          • Update leverage
          • Update margin mode
          • Get positions
          • Get trade history
          • Get funding history
          • Get account equity history
          • Request withdrawal
        • Subaccounts
          • Create subaccount
          • Subaccount fund transfer
        • Orders
          • Get open orders
          • Get order history
          • Get order history by ID
          • Create order
          • Create stop order
          • Create position TP/SL
          • Cancel order
          • Cancel all orders
          • Cancel stop order
          • Batch order
      • Websocket
        • Subscriptions
          • Prices
          • Orderbook
          • Trades
          • Candle
          • Order updates
          • Account balance
          • Account margin
          • Account leverage
          • Account positions
          • Account orders
          • Account order updates
          • Account trades
        • Trading operations
          • Create order
          • Cancel order
          • Cancel all orders
      • Signing
        • Implementation
        • Operation Types
        • Error Handling
      • Rate limits
      • Tick and lot size
    • Specification
  • Other
    • Audits
    • Brand Assets
    • Contact Us
    • Glossary of Terms
Powered by GitBook
On this page
  1. API Documentation
  2. API
  3. REST API
  4. Subaccounts

Subaccount fund transfer

This endpoint allows transfer of funds between main and subaccounts

PreviousCreate subaccountNextOrders

Last updated 18 hours ago

Please refer to our for a comprehensive guide on subaccount fund transfer via API

POST /api/v1/account/subaccount/create

Request Body

Field
Type
Need
Description
Example

"account"

string

required

Sender account address

42trU9A5...

"signature"

string

required

Sender account signature

5j1Vy9Uq...

"timestamp"

integer

required

Current timestamp in milliseconds

1716200000000

"expiry_window"

integer

optional

Signature expiry in milliseconds

30000

"to_account"

string

required

Recipient wallet address

69trU9A5...

"amount"

decimal string

required

Transfer amount (in USDC)

4k2Wx8Zq...

{
  "account": "AwX6321...",
  "signature": "65L9qPp...",
  "timestamp": 1749228826313,
  "expiry_window": 5000,
  "to_account": "CRTxBM...",
  "amount": "420.69"
}

Response

  • Status 200: Subaccount created successfully

Status Code: 200
{
  "success": true,
  "data": {
    "success": true,
    "error": null
  },
  "error": null,
  "code": null
}
  • Status 400: Bad request

Status Code: 400
{
  "success": false,
  "data": null,
  "error": "Insufficient balance for AwX6321: 420.69 (account value: 336.9100000000000000000000)",
  "code": 5
}
  • Status 500: Internal server error

Code Example (Python)

Please refer to our for a comprehensive guide on subaccount creation via API

Python SDK
Python SDK