How to get my long/short positions via Mirror Graph?

I want to get my long/short positions based on my terra address from the Mirror GraphQL API.
I thought the balances or the account Query would do the job but it seems like it doesn’t.

From that I understand the problem is that the lpTokens are actually staked with the smart contract and not directly in my wallet. But the query will only show assets that are directly in my wallet so I end up only with my UST (uusd) balance shown in the query.

Which way can I get the amount of my lptokens staked in long/short positions?


1 Like