monerometrics-net Price and Haveno API

Centralized spot price against the Haveno peer-to-peer market.

GitHub OpenAPI

Operations 6

GET /price XMR price #
GET /price/spread Haveno spread history #
GET /haveno/book Haveno order book #
GET /haveno/methods Haveno premium by payment method #
GET /haveno/liquidity Haveno liquidity history #
GET /haveno/trades Recent Haveno trades #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/monerometrics-net:monerometrics-net-price-and-haveno-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

monerometrics-net-price-and-haveno-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: monerometrics Price and Haveno API
  description: 'Free, read-only JSON API over a reorg-aware Monero index: chain reorganizations, orphan blocks, mining-pool shares with the evidence behind each attribution, network series and the Haveno market. No key, no account.


    ## Quick start


    ```bash

    curl -s https://api.monerometrics.net/status

    curl -s "https://api.monerometrics.net/pools/distribution?window=24h"

    ```


    Every endpoint below comes with a command that runs as is.


    ## Rate limit


    300 requests per minute per IP address, over a sliding window. Every response says where you stand:


    | Header | Meaning |

    |---|---|

    | `RateLimit-Limit` | requests allowed per minute |

    | `RateLimit-Remaining` | requests left in the current window |

    | `RateLimit-Reset` | seconds until a slot frees up |


    Past the limit the API answers `429` with a `Retry-After` header, in seconds.


    ## Caching


    Aggregates are recomputed once per period, so polling faster returns the same bytes. Responses carry `Cache-Control` and an `ETag`: send it back in `If-None-Match` and an unchanged answer costs an empty `304`.


    ## Errors


    Errors are JSON with a `detail` field. `400` for a range the endpoint refuses, `404` for a block or hash that is not known, `422` for a malformed parameter, `429` past the rate limit.


    ## Reading the data


    - A block''s pool is labelled by evidence: `viewkey_proof`, `pool_api`, `coinbase_heuristic` or none. A claimed attribution is not a proven one.

    - Full indexing coverage starts at height 3490000. Below it only the canonical chain is known and pool attribution is mostly absent.

    - Reorganizations and orphans only cover what this node observed live.


    ## Other interfaces


    - Changelog

    - OpenAPI schema, ReDoc

    - Model Context Protocol server: `https://api.monerometrics.net/mcp`

    - llms.txt

    - Source: github.com/nowi333/monerometrics'
  contact:
    name: monerometrics
    url: https://monerometrics.net/
    email: contact@monerometrics.net
  license:
    name: MIT
    url: https://github.com/nowi333/monerometrics/blob/main/LICENSE
  version: 0.31.8
servers:
- url: https://api.monerometrics.net
tags:
- name: Price and Haveno
  description: Centralized spot price against the Haveno peer-to-peer market.
paths:
  /price:
    get:
      summary: XMR price
      description: 'XMR/USD: centralised reference plus the Haveno peer-to-peer street price.


        ```bash

        curl -s "https://api.monerometrics.net/price"

        ```'
      operationId: price_price_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriceResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Price and Haveno
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/price"
  /price/spread:
    get:
      summary: Haveno spread history
      description: 'Haveno peer-to-peer quotes against centralised spot, over time.


        ```bash

        curl -s "https://api.monerometrics.net/price/spread?window=30d"

        ```'
      operationId: price_spread_price_spread_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          pattern: ^(24h|7d|30d|90d|1y)$
          default: 7d
          title: Window
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpreadResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Price and Haveno
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/price/spread?window=30d"
  /haveno/book:
    get:
      summary: Haveno order book
      description: 'The live Haveno order book for XMR/USD, both sides, priced against spot.


        ```bash

        curl -s "https://api.monerometrics.net/haveno/book"

        ```'
      operationId: haveno_book_haveno_book_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderBookResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Price and Haveno
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/haveno/book"
  /haveno/methods:
    get:
      summary: Haveno premium by payment method
      description: 'Executed Haveno trades grouped by payment method, priced against centralized spot.


        ```bash

        curl -s "https://api.monerometrics.net/haveno/methods?window=90d¤cy=USD"

        ```'
      operationId: haveno_methods_haveno_methods_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          pattern: ^(30d|90d|180d|1y|all)$
          default: 180d
          title: Window
      - name: currency
        in: query
        required: false
        schema:
          type: string
          pattern: ^(USD|EUR)$
          default: USD
          title: Currency
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HavenoMethodsResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Price and Haveno
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/haveno/methods?window=90d&currency=USD"
  /haveno/liquidity:
    get:
      summary: Haveno liquidity history
      description: 'Resting liquidity and open offer count on Haveno over time.


        ```bash

        curl -s "https://api.monerometrics.net/haveno/liquidity?window=30d¤cy=USD"

        ```'
      operationId: haveno_liquidity_haveno_liquidity_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          pattern: ^(24h|7d|30d|90d|1y|all)$
          default: 90d
          title: Window
      - name: currency
        in: query
        required: false
        schema:
          type: string
          pattern: ^(USD|EUR|AUD|GBP|BTC)$
          default: USD
          title: Currency
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HavenoLiquidityResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Price and Haveno
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/haveno/liquidity?window=30d&currency=USD"
  /haveno/trades:
    get:
      summary: Recent Haveno trades
      description: 'Recent executed Haveno trades with their payment method.


        ```bash

        curl -s "https://api.monerometrics.net/haveno/trades?limit=20¤cy=EUR"

        ```'
      operationId: haveno_trades_haveno_trades_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          default: 100
          title: Limit
      - name: currency
        in: query
        required: false
        schema:
          type: string
          pattern: ^(USD|EUR|AUD|GBP|BTC)$
          default: USD
          title: Currency
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HavenoTradesResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Price and Haveno
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/haveno/trades?limit=20&currency=EUR"
components:
  schemas:
    SeriesStats:
      properties:
        samples:
          type: integer
          title: Samples
        span_days:
          anyOf:
          - type: number
          - type: 'null'
          title: Span Days
        current:
          anyOf:
          - type: number
          - type: 'null'
          title: Current
        percentile:
          anyOf:
          - type: integer
          - type: 'null'
          title: Percentile
        median:
          anyOf:
          - type: number
          - type: 'null'
          title: Median
        z_robust:
          anyOf:
          - type: number
          - type: 'null'
          title: Z Robust
        minimum:
          anyOf:
          - type: number
          - type: 'null'
          title: Minimum
        maximum:
          anyOf:
          - type: number
          - type: 'null'
          title: Maximum
        change_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Change Pct
      type: object
      required:
      - samples
      title: SeriesStats
      description: 'Where the latest value sits inside the window being displayed.


        A number on its own cannot be read: 161 XMR of resting liquidity is neither

        good nor bad until you know that four fifths of the year sat higher. Every

        field here is computed over the same window the caller asked for, so a wider

        window means a longer baseline and never a hidden one.


        `z_robust` uses the median absolute deviation rather than the standard

        deviation. These series carry occasional spikes an order of magnitude above

        the median, and a classical standard deviation would be inflated by them to

        the point of calling everything normal.'
    BookLevel:
      properties:
        price:
          type: number
          title: Price
        premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Premium Pct
        amount:
          type: number
          title: Amount
        cumulative:
          type: number
          title: Cumulative
        offers:
          type: integer
          title: Offers
          default: 1
        payment_methods:
          items:
            type: string
          type: array
          title: Payment Methods
          default: []
        reversible:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Reversible
      type: object
      required:
      - price
      - amount
      - cumulative
      title: BookLevel
    HavenoTrade:
      properties:
        timestamp_unix:
          type: integer
          title: Timestamp Unix
        price:
          type: number
          title: Price
        payment_method:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment Method
        base_vol:
          anyOf:
          - type: number
          - type: 'null'
          title: Base Vol
        premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Premium Pct
      type: object
      required:
      - timestamp_unix
      - price
      title: HavenoTrade
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    OrderBookResponse:
      properties:
        pair:
          type: string
          title: Pair
        observed_at:
          anyOf:
          - type: integer
          - type: 'null'
          title: Observed At
        age_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Age Seconds
        stale:
          type: boolean
          title: Stale
          default: false
        official_usd:
          anyOf:
          - type: number
          - type: 'null'
          title: Official Usd
        asks:
          items:
            $ref: '#/components/schemas/BookLevel'
          type: array
          title: Asks
          default: []
        bids:
          items:
            $ref: '#/components/schemas/BookLevel'
          type: array
          title: Bids
          default: []
        ask_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Ask Amount
        bid_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Bid Amount
        ask_offers:
          type: integer
          title: Ask Offers
          default: 0
        bid_offers:
          type: integer
          title: Bid Offers
          default: 0
        ask_avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Ask Avg Premium Pct
        bid_avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Bid Avg Premium Pct
        round_trip_cost_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Round Trip Cost Pct
      type: object
      required:
      - pair
      title: OrderBookResponse
      description: 'The live Haveno order book for one pair, both sides, priced against spot.


        `asks` are makers selling XMR, so taking one means buying; `bids` are makers

        buying XMR, so taking one means selling. Levels are sorted outward from spot

        and carry a running total, which is what a depth chart plots. `reversible`

        flags a level whose payment rails let the buyer claw funds back after the

        XMR is released; when a level aggregates several methods it is true if any

        of them is reversible.


        `observed_at` is when this book was actually read from the upstream feed and

        `age_seconds` how old it is. They matter: in a book this thin a single offer

        leaving moves the floor by several points, so a snapshot a few minutes old can

        be badly wrong while looking exactly as clean as a fresh one. When the upstream

        feed fails we serve the last book we know rather than an empty panel, and

        `stale` is set so that is visible instead of silent.'
    PriceResponse:
      properties:
        official_usd:
          anyOf:
          - type: number
          - type: 'null'
          title: Official Usd
        official_change_24h:
          anyOf:
          - type: number
          - type: 'null'
          title: Official Change 24H
        official_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Official Source
        haveno_usd:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Usd
        haveno_bid:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Bid
        haveno_ask:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Ask
        premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Premium Pct
        ask_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Ask Premium Pct
        haveno_ask_avg:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Ask Avg
        ask_avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Ask Avg Premium Pct
        haveno_ask_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Ask Amount
        haveno_ask_offers:
          anyOf:
          - type: integer
          - type: 'null'
          title: Haveno Ask Offers
        haveno_bid_avg:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Bid Avg
        bid_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Bid Premium Pct
        bid_avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Bid Avg Premium Pct
        haveno_bid_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Bid Amount
        haveno_bid_offers:
          anyOf:
          - type: integer
          - type: 'null'
          title: Haveno Bid Offers
        round_trip_cost_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Round Trip Cost Pct
        premium_note:
          anyOf:
          - type: string
          - type: 'null'
          title: Premium Note
      type: object
      title: PriceResponse
      description: 'XMR/USD from a centralised reference and from Haveno (RetoSwap).


        The official price is the spot rate exchanges quote; the Haveno street price

        is what XMR actually trades at peer-to-peer, usually at a premium.'
    HavenoMethod:
      properties:
        payment_method:
          type: string
          title: Payment Method
        trades:
          type: integer
          title: Trades
        volume_xmr:
          anyOf:
          - type: number
          - type: 'null'
          title: Volume Xmr
        avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Premium Pct
        median_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Median Premium Pct
        stddev_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Stddev Premium Pct
        reversible:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Reversible
      type: object
      required:
      - payment_method
      - trades
      title: HavenoMethod
    HavenoMethodsResponse:
      properties:
        window:
          type: string
          title: Window
        currency:
          type: string
          title: Currency
        methods:
          items:
            $ref: '#/components/schemas/HavenoMethod'
          type: array
          title: Methods
          default: []
        trades_total:
          type: integer
          title: Trades Total
          default: 0
        spot_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Spot Source
      type: object
      required:
      - window
      - currency
      title: HavenoMethodsResponse
      description: 'Executed Haveno trades grouped by payment method, priced against centralized spot.


        The premium is each trade''s price over the centralized daily close for that day.

        `reversible` flags payment rails that allow the buyer to claw funds back after

        release; it is our own classification, not a Haveno field.'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HavenoLiquidityResponse:
      properties:
        window:
          type: string
          title: Window
        currency:
          type: string
          title: Currency
        points:
          items:
            $ref: '#/components/schemas/HavenoLiquidityPoint'
          type: array
          title: Points
          default: []
        current_liquidity:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Liquidity
        current_offers:
          anyOf:
          - type: integer
          - type: 'null'
          title: Current Offers
        stats:
          anyOf:
          - $ref: '#/components/schemas/SeriesStats'
          - type: 'null'
        samples:
          type: integer
          title: Samples
          default: 0
      type: object
      required:
      - window
      - currency
      title: HavenoLiquidityResponse
    SpreadResponse:
      properties:
        window:
          type: string
          title: Window
        points:
          items:
            $ref: '#/components/schemas/SpreadPoint'
          type: array
          title: Points
          default: []
        current_ask_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Ask Premium Pct
        current_ask_avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Ask Avg Premium Pct
        avg_ask_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Ask Premium Pct
        haveno_vol_24h:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Vol 24H
        current_ask_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Ask Amount
        current_ask_offers:
          anyOf:
          - type: integer
          - type: 'null'
          title: Current Ask Offers
        current_bid_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Bid Premium Pct
        current_bid_avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Bid Avg Premium Pct
        current_bid_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Bid Amount
        current_bid_offers:
          anyOf:
          - type: integer
          - type: 'null'
          title: Current Bid Offers
        avg_bid_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Bid Premium Pct
        current_round_trip_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Round Trip Pct
        stats:
          anyOf:
          - $ref: '#/components/schemas/SeriesStats'
          - type: 'null'
        samples:
          type: integer
          title: Samples
          default: 0
      type: object
      required:
      - window
      title: SpreadResponse
      description: 'Haveno peer-to-peer quotes against the centralised spot reference.


        ask_premium_pct is what it actually costs to buy without KYC right now:

        the lowest Haveno ask over the centralised spot. bid_premium_pct is the

        mirror image, what the best buyer pays you for XMR. The gap between the two

        amount-weighted averages is round_trip_cost_pct: buying and selling back.

        The last traded price is reported too, but it is a past fill in a thin book

        and is not a live level.'
    HavenoLiquidityPoint:
      properties:
        timestamp_unix:
          type: integer
          title: Timestamp Unix
        max_liquidity:
          anyOf:
          - type: number
          - type: 'null'
          title: Max Liquidity
        max_offers:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Offers
      type: object
      required:
      - timestamp_unix
      title: HavenoLiquidityPoint
    SpreadPoint:
      properties:
        timestamp_unix:
          type: integer
          title: Timestamp Unix
        official_usd:
          anyOf:
          - type: number
          - type: 'null'
          title: Official Usd
        haveno_bid:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Bid
        haveno_ask:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Ask
        haveno_ask_avg:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Ask Avg
        haveno_bid_avg:
          anyOf:
          - type: number
          - type: 'null'
          title: Haveno Bid Avg
        ask_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Ask Premium Pct
        ask_avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Ask Avg Premium Pct
        bid_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Bid Premium Pct
        bid_avg_premium_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Bid Avg Premium Pct
        ask_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Ask Amount
        ask_offers:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ask Offers
        bid_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Bid Amount
        bid_offers:
          anyOf:
          - type: integer
          - type: 'null'
          title: Bid Offers
      type: object
      required:
      - timestamp_unix
      title: SpreadPoint
    HavenoTradesResponse:
      properties:
        currency:
          type: string
          title: Currency
        count:
          type: integer
          title: Count
          default: 0
        trades:
          items:
            $ref: '#/components/schemas/HavenoTrade'
          type: array
          title: Trades
          default: []
      type: object
      required:
      - currency
      title: HavenoTradesResponse
  responses:
    RateLimited:
      description: Rate limit exceeded. Wait `Retry-After` seconds.
      headers:
        RateLimit-Limit:
          description: Requests allowed per minute for this client.
          schema:
            type: integer
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window frees a slot.
          schema:
            type: integer
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
      content:
        application/json:
          example:
            detail: Too many requests