> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rio.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Get spot market price

This endpoint provides the market rate that Rio receives from its data providers, along with the market rate used for generating quotes. The Rio market rate includes after-hours fees and adjustments for price variations related to the underlying crypto asset, such as when USDC/T deviates from its USD peg, whereas the provider market rate does not.

### Requirements to consume the endpoint.

<CardGroup cols={1}>
  <Card title="User approved" icon="check">
    The user must be approved in at least one country.
  </Card>
</CardGroup>


## OpenAPI

````yaml api-reference/market-data-docs.json get /api/market/prices/spot
openapi: 3.0.0
info:
  version: v2.0.0
  title: Market Data API
  description: API for managing market data in the Rio platform
servers:
  - url: https://app.sandbox.rio.trade
security:
  - apiKeyAuth: []
paths:
  /api/market/prices/spot:
    get:
      summary: Get spot market price
      parameters:
        - $ref: '#/components/parameters/sideQueryParameter'
        - $ref: '#/components/parameters/fiatQueryParameter'
        - $ref: '#/components/parameters/countryQueryParameter'
        - $ref: '#/components/parameters/assetQueryParameter'
        - $ref: '#/components/parameters/networkQueryParameter'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseSpotMarketPriceSchema'
          description: OK
components:
  parameters:
    sideQueryParameter:
      name: side
      in: query
      description: >-
        Direction of the price. `buy` prices fiat to stablecoin, `sell` prices
        stablecoin to fiat.
      required: true
      schema:
        type: string
        enum:
          - buy
          - sell
    fiatQueryParameter:
      name: fiat
      in: query
      required: true
      description: Fiat currency.
      schema:
        type: string
        enum:
          - USD
          - MXN
          - PEN
          - COP
    countryQueryParameter:
      name: country
      in: query
      required: true
      description: Country.
      schema:
        type: string
        enum:
          - MX
          - PE
          - CO
    assetQueryParameter:
      name: asset
      in: query
      required: true
      description: Stablecoin to price.
      schema:
        type: string
        enum:
          - USDC
          - USDCe
          - EURC
          - USDT
    networkQueryParameter:
      name: network
      in: query
      required: true
      description: Network of the stablecoin.
      schema:
        type: string
        enum:
          - ethereum
          - polygon
          - solana
          - stellar
          - base
          - tempo
          - tron
          - bsc
  schemas:
    responseSpotMarketPriceSchema:
      type: object
      properties:
        providerMarketPrice:
          type: number
          description: >-
            The market price obtained from the data provider. This does not
            include the price of the underlying crypto asset.
          example: 1
        rioMarketPrice:
          type: number
          description: >-
            The market price used in quotes. This includes the price of the
            underlying crypto asset.
          example: 1
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.