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

# Get prices at moments, with their price basis and finality, for many instruments

> [OpenAPI JSON Spec](/docs/output/v1_market_prices-at_post.json)
Returns, for each point, the price of the one-minute bar its `side` names: `FIRST_AT_OR_AFTER` is the open of the first closed bar opening at or after `at` (the price a market order placed at `at` would first trade at); `LAST_AT_OR_BEFORE` is the close of the last closed bar opening at or before `at`, however old (the price as of `at`; use the current time for the latest price). `time` is the bar's open time. Precision is one minute. Prices are on the current split basis, as GET /market/kline returns them.

**Basis and finality:** every result of one instrument in a response carries the same `basis`, an opaque value to compare only for equality. It changes when a split adjusts the instrument's prices differently or when its stored history is rewritten, so a price stored with its basis can be reused for as long as a newer response reports the same basis. `final` is true when the price cannot change while the basis stays the same: its bars are past the market's lateness (10 days for US stocks, which are reconciled for 5 trading days; 1 day otherwise) and no rewrite of the instrument ran during the read. Sides may be mixed in one request, so past and latest prices share one split snapshot.

**Points:** 1 to 500, each a `trading_pair` (the same format as GET /market/kline), `at` in unix seconds and `side`. Results are in request order, one per point.

**Supported pairs:**
| Scenario | trading_pair example | Session |
|---|---|---|
| US stock / ETF spot | `US_SPOT_NVDA_USD` | Extended hours (04:00-20:00 ET) |
| Non-US stock spot | `HK_SPOT_0700_HKD` (market = exchange suffix, symbol without suffix) | Exchange session |
| Binance spot | `BINANCE_SPOT_BTC_USDT` | 24/7 |
| Binance USDT perpetual | `BINANCE_PERP_BTC_USDT` | 24/7 |

The pair's currency must be the instrument's quote: `USD` for US stocks and ETFs, `USDT` for Binance, and for a non-US listing its exchange's quote as GET /market/trading-pairs publishes it (for example `HKD`, or `GBp` for London). Any other currency names a different instrument and is `INVALID_PARAMETER` on its point.

**Per point:** `price` and `time` are absent while no such bar exists (for example a FIRST point over a weekend). A point that cannot be read carries `error` and no `basis` (`INVALID_PARAMETER` for an unsupported or malformed pair, a currency that is not the instrument's quote, or an unknown symbol, `UNAVAILABLE` when its market's data could not be read) while the other points are still answered.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/market/prices-at
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Welcome to Arrays!


    Arrays is a unified financial data layer for both financial institutions and
    retail users, delivering comprehensive market data across crypto and equity
    markets. Our datasets cover fundamentals, ETFs, options, crypto, and more.


    Visit [arrays.org](https://arrays.org) to request an API key and start your
    free trial. You can explore our full API offerings in the documentation
    below.


    For any questions regarding APIs or pricing, please contact
    support@arrays.org.
  title: Arrays API
  version: '1.0'
servers:
  - url: https://data-tools.prd.arrays.org/api
security: []
paths:
  /v1/market/prices-at:
    post:
      tags:
        - Market
      summary: >-
        Get prices at moments, with their price basis and finality, for many
        instruments
      description: >-
        [OpenAPI JSON Spec](/docs/output/v1_market_prices-at_post.json)

        Returns, for each point, the price of the one-minute bar its `side`
        names: `FIRST_AT_OR_AFTER` is the open of the first closed bar opening
        at or after `at` (the price a market order placed at `at` would first
        trade at); `LAST_AT_OR_BEFORE` is the close of the last closed bar
        opening at or before `at`, however old (the price as of `at`; use the
        current time for the latest price). `time` is the bar's open time.
        Precision is one minute. Prices are on the current split basis, as GET
        /market/kline returns them.


        **Basis and finality:** every result of one instrument in a response
        carries the same `basis`, an opaque value to compare only for equality.
        It changes when a split adjusts the instrument's prices differently or
        when its stored history is rewritten, so a price stored with its basis
        can be reused for as long as a newer response reports the same basis.
        `final` is true when the price cannot change while the basis stays the
        same: its bars are past the market's lateness (10 days for US stocks,
        which are reconciled for 5 trading days; 1 day otherwise) and no rewrite
        of the instrument ran during the read. Sides may be mixed in one
        request, so past and latest prices share one split snapshot.


        **Points:** 1 to 500, each a `trading_pair` (the same format as GET
        /market/kline), `at` in unix seconds and `side`. Results are in request
        order, one per point.


        **Supported pairs:**

        | Scenario | trading_pair example | Session |

        |---|---|---|

        | US stock / ETF spot | `US_SPOT_NVDA_USD` | Extended hours (04:00-20:00
        ET) |

        | Non-US stock spot | `HK_SPOT_0700_HKD` (market = exchange suffix,
        symbol without suffix) | Exchange session |

        | Binance spot | `BINANCE_SPOT_BTC_USDT` | 24/7 |

        | Binance USDT perpetual | `BINANCE_PERP_BTC_USDT` | 24/7 |


        The pair's currency must be the instrument's quote: `USD` for US stocks
        and ETFs, `USDT` for Binance, and for a non-US listing its exchange's
        quote as GET /market/trading-pairs publishes it (for example `HKD`, or
        `GBp` for London). Any other currency names a different instrument and
        is `INVALID_PARAMETER` on its point.


        **Per point:** `price` and `time` are absent while no such bar exists
        (for example a FIRST point over a weekend). A point that cannot be read
        carries `error` and no `basis` (`INVALID_PARAMETER` for an unsupported
        or malformed pair, a currency that is not the instrument's quote, or an
        unknown symbol, `UNAVAILABLE` when its market's data could not be read)
        while the other points are still answered.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/model.PricesAtRequest'
        description: 'Points: trading_pair, at (unix seconds) and side, 1 to 500'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        items:
                          $ref: '#/components/schemas/model.PriceAt'
                        type: array
                    type: object
        '400':
          description: >-
            VALIDATION_ERROR: invalid JSON, no points, more than 500, at not
            positive, or an unknown side
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.APIResponse'
components:
  schemas:
    model.PricesAtRequest:
      properties:
        points:
          description: Points to read, 1 to 500. Sides may be mixed.
          items:
            $ref: '#/components/schemas/model.PriceAtPoint'
          maxItems: 500
          minItems: 1
          type: array
      required:
        - points
      type: object
    model.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/model.APIError'
        metadata: {}
        pagination: {}
        request_id:
          type: string
        success:
          type: boolean
      type: object
    model.PriceAt:
      properties:
        at:
          example: 1762956031
          type: integer
        basis:
          example: 3f9a1c0d2b7e4f6a8c5d1e0b
          type: string
        error:
          $ref: '#/components/schemas/model.APIError'
        final:
          example: true
          type: boolean
        price:
          example: 188.25
          type: number
        quote_currency:
          example: USD
          type: string
        side:
          example: FIRST_AT_OR_AFTER
          type: string
        time:
          example: 1762956060
          type: integer
        trading_pair:
          example: US_SPOT_NVDA_USD
          type: string
      type: object
    model.PriceAtPoint:
      properties:
        at:
          description: At is the moment in unix seconds.
          example: 1762956031
          minimum: 1
          type: integer
        side:
          description: Side names the bar that prices the point.
          enum:
            - FIRST_AT_OR_AFTER
            - LAST_AT_OR_BEFORE
          example: FIRST_AT_OR_AFTER
          type: string
        trading_pair:
          description: TradingPair names the instrument as GET /market/kline does.
          example: US_SPOT_NVDA_USD
          type: string
      required:
        - at
        - side
        - trading_pair
      type: object
    model.APIError:
      properties:
        code:
          example: RESOURCE_NOT_FOUND
          type: string
        details:
          items:
            $ref: '#/components/schemas/model.APIErrorDetail'
          type: array
        docs_url:
          type: string
        examples:
          items:
            type: string
          type: array
        hint:
          type: string
        message:
          example: The requested resource was not found.
          type: string
        suggestions:
          items:
            type: string
          type: array
      type: object
    model.APIErrorDetail:
      properties:
        field:
          type: string
        got:
          type: string
        reason:
          type: string
      type: object

````

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