Pacifica
  • 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
          • Create hardware subaccount
          • Subaccount fund transfer
          • Hardware 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
  • Getting Started
    • Closed Alpha Guide
      • Link To Guide PDF
    • Closed Alpha Trading Competition
  • 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

Hardware subaccount fund transfer

This endpoint allows transfer of funds between main hardware accounts and subaccounts

PreviousSubaccount fund transferNextOrders

Last updated 9 hours ago

Please refer to our for a comprehensive guide on hardware fund transfer

POST /api/v1/account/subaccount/transfer

Request Body

Field
Type
Need
Description
Example

"account"

string

required

Sender hardware account address

42trU9A5...

"signature"

string

required

Contains data of main (hardware) account signature

See below

"type"

string

required

Specifies that this is a Hardware signature

"hardware"

"value"

string

required

Main hardware account signature

"2V4Y7Mpk..."

"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)

420.69

{
  "account": "AwX6321...",
  "signature": {
      "type": "hardware",
      "value": "420.49",
  },
  "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