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
  • 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

Tick and lot size

The following doc describes how tick and lot size, as well as rounding, are handled at an API level when Pacifica's endpoints receives requests with price and amount fields.

PreviousRate limitsNextAudits

Last updated 16 hours ago

Both 'price' and 'amount' fields in order related API operations are subject to rounding, needing to be multiples tick and lot size. Generally tick_size is determined by the rightmost decimal place of a symbol's current price, and prices generally have five significant figures, with the exception of assets with more than six integer places, where sig.figs = #of integer places. For example: If 'price' = 123.45, expect 'tick_size' = 0.01 If 'price' = 123456, expect 'tick_size' = 1 Generally, lot_size*tick_size = 0.0001 or 0.00001, based on the market. For the exact implemented tick_size and lot_size of each market, call the endpoint to verify.

Rounding

Pacifica accepts requests containing 'price' and 'amount' fields only when they are multiples of tick_size and lot_size respectively. Any requests with incorrectly rounded 'price' and 'amount' fields will return '"Internal server error","code":500'

For example: BTC has "tick_size": "1", "lot_size": "0.00001" A request where "amount": "0.000005" will return Status 500: Internal server error A request where "price": "100_000.5" will return Status 500: Internal server error

A request where "amount": "0.00002" will be accepted A request where "price": "100_001" will be accepted

market info