I'm wondering how to retrieve the current amount of assets (asset 1 & 2, not shares) that an account has ownership of within a liquidity pool (LP)? More specifically, I'm searching for the Horizon API endpoint(s), data, and math to create the desired result. Thanks in advance.

  • What I'm currently doing is dividing the pools total XLM value in half (50/50) and then calculating how many assets 50% of the XLM value will produce.
    – Marc Wiest
    Jan 8 at 9:26


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.