๐Ÿ‹
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
  • GET Statistics
  • GET Revenue
  • GET Protocol Net Revenue
  • GET Volume Data
  • GET Time
  1. Developers
  2. Moby Traders API
  3. REST API

General

GET Statistics

GET /v1/general/statistics

Get all statistics related to Moby.

Query Examples

curl --request GET \
     --url https://api.moby.trade/v1/general/statistics \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
import axios from 'axios';

async function sendRequest() {
  try {
    const response = await axios.get('https://api.moby.trade/v1/general/statistics', {
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    console.log(response.data);
  } catch (error) {
    console.error('Error fetching statistics:', error);
  }
}

sendRequest();
import requests

def send_request():
    url = 'https://api.moby.trade/v1/general/statistics'
    headers = {
        'accept': 'application/json',
        'content-type': 'application/json'
    }

    response = requests.get(url, headers=headers)
    print(response.json())

send_request()
async function sendRequest() {
  try {
    const response = await fetch('https://api.moby.trade/v1/general/statistics', {
      method: 'GET',
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    const data = await response.json();
    console.log(data);
  } catch (error) {
    console.error('Error fetching statistics:', error);
  }
}

sendRequest();

Response Examples

The unit of all values is USD.

{
    "revenue": {
        "result": {
            "daily_premium_volume": "25677.05",
            "daily_fee_volume": "384.43",
            "total_premium_volume": "7407337.69",
            "total_fee_volume": "223060.70"
        }
    },
    "protocolNetRevenue": {
        "result": {
            "daily_fee_usd": "384.43",
            "total_fee_usd": "223060.70",
            "daily_risk_premium_usd": "100.92",
            "total_risk_premium_usd": "56760.75"
        }
    },
    "volumeData": {
        "result": {
            "daily_notional_volume": "3711500.53",
            "daily_premium_volume": "25677.05",
            "total_notional_volume": "1221181263.48",
            "total_premium_volume": "7407337.69"
        }
    }
}

GET Revenue

GET /v1/general/statistics/revenue

Get revenue related to Moby.

Query Examples

curl --request GET \
     --url https://api.moby.trade/v1/general/statistics/revenue \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
import axios from 'axios';

async function sendRequest() {
  try {
    const response = await axios.get('https://api.moby.trade/v1/general/statistics/revenue', {
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    console.log(response.data);
  } catch (error) {
    console.error('Error fetching statistics:', error);
  }
}

sendRequest();
import requests

def send_request():
    url = 'https://api.moby.trade/v1/general/statistics/revenue'
    headers = {
        'accept': 'application/json',
        'content-type': 'application/json'
    }

    response = requests.get(url, headers=headers)
    print(response.json())

send_request()
async function sendRequest() {
  try {
    const response = await fetch('https://api.moby.trade/v1/general/statistics/revenue', {
      method: 'GET',
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    const data = await response.json();
    console.log(data);
  } catch (error) {
    console.error('Error fetching statistics:', error);
  }
}

sendRequest();

Response Examples

{
    "result": {
        "daily_premium_volume": "25677.05",
        "daily_fee_volume": "384.43",
        "total_premium_volume": "7407337.69",
        "total_fee_volume": "223060.70"
    }
}

Properties in the Response

Name
Type
Description

daily_premium_volume

string

The daily volume of option trading

daily_fee_volume

string

The daily execution fee for trading option

total_premium_volume

string

The total premium volume

total_fee_volume

string

The total fee volume

GET Protocol Net Revenue

GET /v1/general/statistics/protocolNetRevenue

Get the Moby's protocol net revenue.

Query Examples

curl --request GET \
     --url https://api.moby.trade/v1/general/statistics/protocolNetRevenue \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
import axios from 'axios';

async function sendRequest() {
  try {
    const response = await axios.get('https://api.moby.trade/v1/general/statistics/protocolNetRevenue', {
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    console.log(response.data);
  } catch (error) {
    console.error('Error fetching statistics:', error);
  }
}

sendRequest();
import requests

def send_request():
    url = 'https://api.moby.trade/v1/general/statistics/protocolNetRevenue'
    headers = {
        'accept': 'application/json',
        'content-type': 'application/json'
    }

    response = requests.get(url, headers=headers)
    print(response.json())

send_request()
async function sendRequest() {
  try {
    const response = await fetch('https://api.moby.trade/v1/general/statistics/protocolNetRevenue', {
      method: 'GET',
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    const data = await response.json();
    console.log(data);
  } catch (error) {
    console.error('Error fetching statistics:', error);
  }
}

sendRequest();

Response Examples

{
    "result": {
        "daily_fee_usd": "384.43",
        "total_fee_usd": "223060.70",
        "daily_risk_premium_usd": "100.92",
        "total_risk_premium_usd": "56760.75"
    }
}

Properties in the Response

Name
Type
Description

daily_fee_usd

string

The daily execution fee in USD

total_fee_usd

string

The total fee in USD

daily_risk_premium_usd

string

Daily sum of risk premium amount in USD

total_risk_premium_usd

string

Total sum of risk premium amount in USD

GET Volume Data

GET /v1/general/statistics/volumeData

Get the volume data of Moby.

Query Examples

curl --request GET \
     --url https://api.moby.trade/v1/general/statistics/volumeData \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
import axios from 'axios';

async function sendRequest() {
  try {
    const response = await axios.get('https://api.moby.trade/v1/general/statistics/volumeData', {
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    console.log(response.data);
  } catch (error) {
    console.error('Error fetching statistics:', error);
  }
}

sendRequest();
import requests

def send_request():
    url = 'https://api.moby.trade/v1/general/statistics/volumeData'
    headers = {
        'accept': 'application/json',
        'content-type': 'application/json'
    }

    response = requests.get(url, headers=headers)
    print(response.json())

send_request()
async function sendRequest() {
  try {
    const response = await fetch('https://api.moby.trade/v1/general/statistics/volumeData', {
      method: 'GET',
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    const data = await response.json();
    console.log(data);
  } catch (error) {
    console.error('Error fetching statistics:', error);
  }
}

sendRequest();

Response Examples

{
    "result": {
        "daily_notional_volume": "3711501.11",
        "daily_premium_volume": "25677.06",
        "total_notional_volume": "1221181264.05",
        "total_premium_volume": "7407337.69"
    }
}

Properties in the Response

Name
Type
Description

daily_notional_volume

string

Daily traded amount of contacts times underlying assets' spot price in USD

daily_premium_volume

string

Daily traded amount of contacts times option price in USD

total_notional_volume

string

Accumulated volume of all day

total_premium_volume

string

Accumulated volume of all day

GET Time

GET /v1/general/time

Get the servertime in seconds.

Query Examples

curl --request GET \
     --url https://api.moby.trade/v1/general/time \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
import axios from 'axios';

async function sendRequest() {
  try {
    const response = await axios.get('https://api.moby.trade/v1/general/time', {
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    console.log(response.data);
  } catch (error) {
    console.error('Error fetching time:', error);
  }
}

sendRequest();
import requests

def send_request():
    url = 'https://api.moby.trade/v1/general/time'
    headers = {
        'accept': 'application/json',
        'content-type': 'application/json'
    }

    response = requests.get(url, headers=headers)
    print(response.json())

send_request()
async function sendRequest() {
  try {
    const response = await fetch('https://api.moby.trade/v1/general/time', {
      method: 'GET',
      headers: {
        'accept': 'application/json',
        'content-type': 'application/json'
      }
    });
    const data = await response.json();
    console.log(data);
  } catch (error) {
    console.error('Error fetching time:', error);
  }
}

sendRequest();

Response Examples

{
    "timestamp": 1720518979
}

PreviousREST APINextAccount

Last updated 9 months ago