Skip to main content
Version: pre-release (v0.79)

List oracle data

GET 

/api/v2/oracle/data

Get a list of all oracle data that have been broadcast to any market

Request

Query Parameters

    oracleSpecId string

    Oracle spec ID to list data for.

    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
    oracleData object

    Page of seen oracle data and corresponding page information.

    edges object[]

    Page of oracle data and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Data that was received from an external oracle.

    externalData object
    data object

    Data describes valid source data that has been received by the node. It represents both matched and unmatched data.

    broadcastAt int64

    Timestamp in Unix nanoseconds for when the data was broadcast to the markets with a matching spec. It has no value when the data did not match any spec.

    data object[]
  • Array [
  • name string

    Name of the property.

    value string

    Value of the property.

  • ]
  • error string

    Error message if the data could not be sourced.

    matchedSpecIds string[]

    matched_specs_ids lists all the specs that matched this data. When the array is empty, it means no spec matched this data.

    metaData object[]
  • Array [
  • name string

    Name of the property.

    value string

    Value of the property.

  • ]
  • signers object[]
  • Array [
  • ethAddress object

    In case of an open oracle - Ethereum address will be submitted.

    address string
    pubKey object

    List of authorized public keys that signed the data for this source. All the public keys in the data should be contained in these public keys.

    key string
  • ]
  • ]
  • 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...