Fetch Notional Accounts

Get a list of account Ids

This query can be used to get a list of Notional account addresses:

{
  accounts(first: 1000, where:{ systemAccountType: None}) {
    id
  }
}

Get an Account current positions and balances

This query can be used to get the current balances of a given Notional account:

{
  accounts(where:{id:"0x4e8014ff5bace498dab1a9e2b5c3f4240bc059b6"}) {
    id
    balances {
      token{symbol}
      snapshots(first:1, orderBy:blockNumber, orderDirection:desc) {
        currentBalance
      }
    }
  }
}

Last updated