Skip to main content
Version: mainnet (v0.73)

List funding period data points

Get a list of data points for a perpetual market's funding periods.

Path Parameters
    marketId string required

    Market ID to get funding period data points for.

Query Parameters
    dateRange.startTimestamp int64

    Timestamp in Unix nanoseconds indicating the start of the date range.

    dateRange.endTimestamp int64

    Timestamp in Unix nanoseconds indicating the end of the date range.

    source string

    Possible values: [SOURCE_UNSPECIFIED, SOURCE_EXTERNAL, SOURCE_INTERNAL]

    Default value: SOURCE_UNSPECIFIED

    Restrict the data points to those with the given source type.

    • SOURCE_UNSPECIFIED: Default value
    • SOURCE_EXTERNAL: Data point is from an external data source, such as an oracle, and represents the spot price of the underlying asset.
    • SOURCE_INTERNAL: Data point from within Vega such as the mark price after performing mark-to-market.
    seq uint64

    Restrict the data points to those that contributed to the given funding period sequence.

    pagination.first int32

    Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.

    pagination.after string

    If paging forwards, the cursor string for the last row of the previous page.

    pagination.last int32

    Number of records to be returned that sort less than row identified by cursor supplied in 'before'.

    pagination.before string

    If paging forwards, the cursor string for the first row of the previous page.

    pagination.newestFirst boolean

    Whether to order the results with the newest records first. If not set, the default value is true.

Responses

A successful response.


Schema
    fundingPeriodDataPoints object

    Page of funding period data points and corresponding page information.

    edges object[]

    Page of funding period data points and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Funding period data point.

    dataPointType FundingPeriodDataPointSource

    Possible values: [SOURCE_UNSPECIFIED, SOURCE_EXTERNAL, SOURCE_INTERNAL]

    Default value: SOURCE_UNSPECIFIED

    Origin of the data point.

    marketId string

    Market ID which the data point relates to.

    price string

    Price of the asset as seen by this data point.

    seq uint64

    Sequence number of the funding period this data point belongs to.

    timestamp int64

    Timestamp in Unix nanoseconds of when the data point was received.

    twap string

    The TWAP for this source with this data-point added.

  • ]
  • pageInfo object

    Page information that is used for fetching further pages.

    endCursor string

    End cursor.

    hasNextPage boolean

    Indicator if there is a next page.

    hasPreviousPage boolean

    Indicator if there is a previous page.

    startCursor string

    Start cursor.

Loading...