LogoLogo
AppBlogGovSocials
  • What is Premia?
    • Premia Origins
      • History
      • Principles
      • Mission, Vision, & Values
  • Quick Start
  • The Premia Protocol
    • Options on Premia
      • Options Primer
      • Order-book vs. AMM
    • Key Protocol Features
      • Base Layer (Exchange)
      • Depot Layer (Vaults)
      • Messaging Layer (RFQ & OB)
      • Fee Schedule
      • Differentiators
    • Concepts
      • LP Range Orders
      • Trading
      • Orderbook & Request-for-Quote (RFQ)
      • Fees
      • Exercise & Settlement
      • Margin
      • Oracles
      • Liquidity Mining
      • Referral Programs
      • Advanced Exchange Concepts
        • Token Integration Requirements
        • Flash Swaps and Loans
      • Vault Depot
        • What is a Depot?
        • APY Calculation
        • Underwriter Depot
    • Governance
      • Premian Civitas
        • Parliament
        • Blue Descent
        • Premian Assembly
        • "Influence" Politics
      • Voting (vxPremia)
        • vxPremia Manifold
        • vxPremia Rewards
          • Options Liquidity Mining
          • Protocol Commissions
          • AirDrip Initiative
      • Operator & Facilitator Role
        • Operational Expenditure and Maintenance Costs
        • Insurance Fund
      • Meta Economics
  • Developer Center
    • APIs
      • Orderbook API
        • REST API
        • WEBSOCKET
      • Subgraph API
      • Containerized API
        • API Reference
          • Orderbook
            • Quotes
            • Orders
          • Pool
            • Settle
            • Exercise
            • Annihilate
          • Account
            • Collateral Approval
            • Orders
            • Collateral Balances
            • Native Balance
            • Option Balances
          • Pools
            • Find Pools
            • Create Pools
            • Valid Maturities
            • Valid Strikes
          • Oracles
            • IV
            • Spot
          • Vaults
            • Quote
            • Trade
        • WebSockets Reference
          • Authorization
          • Connection
          • Quotes Channel
          • RFQ Channel
    • SDK
      • Guides
      • SDK Technical Docs
    • Contracts
      • Multi-Signature Wallets
      • V3 Protocol
        • Overview
        • Guides
        • Smart Contract Technical Documentation
      • Margin
      • Orderbook
      • vxPremia
      • Universal Router
      • Vaults
    • Integrations
      • Use Cases
      • Code Snippets
    • Subgraph
    • V3 Change log
  • Bots
    • Range Order Bot
  • Resources
    • VIP & Institutional Services
    • Media Kit
    • Bug Bounty
    • Audits
    • Community Groups
    • Research
      • SSVI
    • Legal, Terms, & Disclaimers
      • Terms of Service
      • Privacy Policy
      • Cookie Policy
      • Prohibited Use
      • Affiliate & Advocate Program
      • Self-Service Affiliate Agreement
      • Bug Bounty Terms
      • Academy/Newsletter Disclaimer
      • Trading Competition Terms and Disclaimers
      • Blue Descent
      • Legal Disclaimer
      • Media Disclaimer
      • AML/KYC Policies
      • Intellectual Property
      • Amendments & Updates
      • Contact Us
      • FAQs (WIP)
    • ๐Ÿ“ฐNewsletter
    • ๐ŸŒŠCrypto News Blotter
    • ๐ŸŽ“Academy
    • ๐Ÿ”ตPremia Blue (V3)
    • ๐Ÿ’ŽPremia V2 Docs
Powered by GitBook

Terms and Disclaimers

  • Privacy Policy
On this page

Was this helpful?

  1. Developer Center
  2. APIs
  3. Containerized API
  4. API Reference
  5. Vaults

Trade

To trade with a va

PreviousQuoteNextWebSockets Reference

Last updated 1 year ago

Was this helpful?

Trade with a vault.

post
Authorizations
Body
basestringOptionalExample: WETH
quotestringOptionalExample: USDC
expirationstringOptionalExample: 03NOV23Pattern: ^\d\d\w\w\w\d\d$
strikenumberOptionalExample: 1700
typestring ยท enumOptionalExample: PPossible values:
sizenumberOptionalExample: 4
directionstringOptionalExample: buy
premiumLimitnumberOptionalExample: 0.23
Responses
200
Successful Operation
application/json
400
Invalid parameters supplied
application/json
401
Not authorized
application/json
post
POST /vaults/trade HTTP/1.1
Host: 
x-apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 125

{
  "base": "WETH",
  "quote": "USDC",
  "expiration": "03NOV23",
  "strike": 1700,
  "type": "P",
  "size": 4,
  "direction": "buy",
  "premiumLimit": 0.23
}
{
  "market": {
    "vault": "pSV-WETH/USDCe-C",
    "strike": 2500,
    "expiration": "03NOV23",
    "size": 4,
    "direction": "buy"
  }
}