๐Ÿ‹
Moby
  • Letโ€™s Get Started
    • ๐Ÿ‹ About Moby
    • โšก Our Vision
    • ๐Ÿค“ Your Guidebook
      • Get Setup
        • Connect Wallet
        • Trade Options
        • 0DTE Options
        • Provide Liquidity
      • Fees & Instruments
        • Fee Generation
        • Fee Distribution
        • Instruments
      • Testnet
  • How itโ€™s Built
    • ๐Ÿš€ Synchronized Liquidity Engine (SLE)
    • ๐Ÿงฎ Options Pricing Model
      • Mark Price
        • Futures Index
        • Implied Volatility
      • Risk Premium
        • Deriving Greeks
        • Risk Premium Calculation
        • Risk Managing Mechanism
    • ๐Ÿค– Architecture
      • Liquidity Provision Mechanism
      • Options Listing Standard
      • How to Open / Close / Settle Position
      • Synchronized Liquidity Engine (SLE)
      • Options Position Tokens
      • Tools to Maximize Capital Efficiency
    • โš™๏ธ Key Features
      • High Leverage & Limited Risk with No Liquidation
      • Narrow Spread with Dynamic Risk Premium
      • Guaranteed Settlement
      • Capital Efficiency Improvements with Combo Options
      • Even Higher Capital Efficiency with Clearing House
      • Abundant Liquidity for All Options
      • Composable Options for Structured Products
      • High Profitability for LPs
      • Real-Time Automatically Hedged OLP
      • Upcoming Features
    • โ›“ DeFi Options Vault
      • ๐Ÿป Berachain DeFi Options Vault
        • ๐Ÿ”’ Architecture
        • ๐Ÿ“ˆ Options Strategy
  • How itโ€™s Driven
    • ๐Ÿ›ก๏ธ Building the Safest DeFi Protocol
      • Safety Features
      • Smart Contract Audit & Real-Time Security Monitoring
    • ๐Ÿ› Backed by Decentralized Governance
      • Governance
    • ๐ŸŒ Led by the Best Partners & Community
      • Arbitrum X Moby
      • Engagement Programs
  • Need More Info?
    • ๐Ÿ“š Resource Library
      • Developer Resources & Educational Contents
      • Terms & Conditions
      • Glossary
      • FAQ
  • Developers
    • Moby Traders API
      • REST API
        • General
        • Account
        • Market
    • Trade Scripts
      • Prerequisites
      • Open Positions
      • Close Positions
    • Interfaces & ABI
      • PositionManager.sol
      • SettleManager.sol
      • RewardRouterV2.sol
      • OptionsMarket.sol
    • Appendix 1: Parameters for Open/Close Options
    • Appendix 2: the Diff between optionId and optionTokenId
    • Appendix 3: Sample Moby Contract Module for Developers
Powered by GitBook
On this page
  • Buy Call
  • Sell Call
  • Buy Call Spread
  • Sell Call Spread
  • Buy Put
  • Sell Put
  • Buy Put Spread
  • Sell Put Spread
  1. Developers
  2. Trade Scripts

Open Positions

Buy Call

Example

Open position for buying a naked call option(BTC-3JUL24-61250-C) with amount of 0.0000001 WBTC:

ts-node scripts/trade.ts -o -i BTC-3JUL24-61250-C --buy --call --naked -p wbtc -a 0.0000001

Sell Call

  • In Sell Call case, the payment currency must be same as underlying asset.

  • Every payment asset is wrapped. If underlying asset is BTC, the given input of payment asset should be wbtc.

Example

Open position for selling a naked call option(BTC-3JUL24-61250-C) with amount of 0.0000001 WBTC contracts:

ts-node scripts/trade.ts -o -i BTC-3JUL24-61250-C --sell --call --naked -p wbtc -a 0.0000001

Buy Call Spread

Example

Open position for buying a combo call option(BTC-3JUL24-61250-C) with amount of 0.000001 WBTC with pair strike price of 63000:

ts-node scripts/trade.ts -o -i BTC-3JUL24-61250-C --buy --call --combo -p eth -a 0.000001 -pair 63000

Sell Call Spread

  • In Sell Call Spread case, the payment currency should be USDC.

Example

Open position for selling a combo call option(BTC-3JUL24-61250-C) with collateral amount of 0.01 USDC with pair strike price of 63000:

ts-node scripts/trade.ts -o -i BTC-3JUL24-61250-C --sell --call --combo -p usdc -a 0.01 --pair 63000

Buy Put

Example

Open position for buying a naked put option(BTC-3JUL24-61250-P) with amount of 0.01 USDC:

ts-node scripts/trade.ts -o -i BTC-3JUL24-61250-P --buy --put --naked -p usdc -a 0.01

Sell Put

  • In Sell Put case, the payment currency should be USDC.

Example

Open position for selling a naked put option(BTC-3JUL24-61250-P) with collateral amount of 0.01 USDC:

ts-node scripts/trade.ts -o -i BTC-3JUL24-61250-P --sell --put --naked -p usdc -a 0.01

Buy Put Spread

Example

Open position for buying a combo put option(BTC-3JUL24-61250-P) with paying amount of 0.001 WBTC with pair strike price of 60500:

ts-node scripts/trade.ts -o -i BTC-3JUL24-61250-P --buy --put --combo -p usdc -a 0.001 --pair 60500

Sell Put Spread

  • In Sell Put Spread case, the payment currency should be USDC.

Example

Open position for selling a combo put option(BTC-3JUL24-61250-P) with amount of 0.1 USDC with pair strike price of 60500:

ts-node scripts/trade.ts -o -i BTC-3JUL24-61250-P --sell --put --combo -p usdc -a 0.1 --pair 60500

PreviousPrerequisitesNextClose Positions

Last updated 10 months ago