Skip to main content

Graphql

How to use Graphql In Finmars and query examples

Getting Started

What is GraphQL GraphQL is an API query language. It lets the client ask exactly for the data i...

Access to Graphql from Browser Playground

Open the GraphQL playground in your browser: https://<your-finmars-domain>/:realm_code:/space_co...

Access to Graphql from code

GraphQL Endpoint Finmars exposes GraphQL via a single endpoint. :realm_code:/:space_code:/graph...

Get Accounts in Graphql

This query returns a list of accounts with basic fields and account type. GraphQL Query ...

Get Portfolios in Graphql

This query returns a list of portfolios with basic fields. GraphQL Query query GetPortfol...

Get Portfolio History in Graphql

This query returns historical NAV values for portfolios. GraphQL Query query GetPortfolioHi...

Get Currencies in Graphql

This query returns a list of currencies. GraphQL Query query GetCurrencyList { currenc...

Get FX Rates in Graphql

This query returns currency rates for a specific date and specific currency. GraphQL Que...

Get Instruments in Graphql

This query returns a list of instruments with basic fields and instrument type. GraphQL Quer...

Get Prices in Graphql

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

Get Transactions in Graphql

This query returns transactions for one portfolio and an accounting date range. GraphQL ...

Get Balance Report In Graphql

This query returns a balance report for selected portfolios on a given date. GraphQL Query ...

Get Profit & Loss (PNL) Report in Graphql

This query returns a pnl report for selected portfolios on a given date. GraphQL Query qu...

Get Performance Report in Graphql

This query returns performance metrics for one or more portfolio registers. GraphQL Query q...

Get Transaction Report in Graphql

This query returns calculated transaction report rows for a given date range. GraphQL Quer...

Get Price History Check

This query returns a price history check report on a given date. GraphQL Query query GetP...