Get Prices in Graphql

This query returns price history rows for one instrument (by user_code).


Screenshot 2025-12-16 at 17.49.19.png


GraphQL Query

query GetPriceHistoryList {
  price_history(
    pagination: {
      limit: 20
      offset: 0
    }
    filters: {
      instrument: {
        user_code: {
          exact: "XS2200244072"
        }
      }
      pricing_policy: {
        user_code:{
          exact: "com.finmars.standard-pricing:standard"
        }
      }
    }
  ) {
    id
    date
    principal_price
    instrument {
      id
      user_code
      name
    }
    pricing_policy {
      id
      user_code
    }
  }
}

Filter Highlights

filters: {
  instrument: {
    user_code: { exact: "XS2200244072" }
  }
}

Why Use user_code


Notes

date: { exact: "2023-12-01" }

Revision #3
Created 2025-12-16 16:45:02 UTC by Sergei Zhitenev
Updated 2025-12-16 17:19:00 UTC by Sergei Zhitenev