v1

latestOpenAPI 3.1.02026-07-2681217214.1 KB
PNL
DEVELOPER
WALLET

Get Pnl

post/api/v1/developer/wallet/pnl

Query parameters

min_liquiditynumber

Minimum liquidity of which tokens must have to be included in the response.

Minimum liquidity of which tokens must have to be included in the response.

Request body

chainstring required

Lowercase chain name

addressstring required

Wallet address

Example request

[
  {
    "address": "0xab16781a13fe343a275f4bb5c883a64ceda52917",
    "chain": "ethereum"
  }
]

Response

Successful Response

errorstring nullable

Error message

cursorstring nullable

Pagination cursor for next page

Example response

{
  "data": {
    "items": [
      {
        "address": "125Z6k4ZAxsgdG7JxrKZpwbcS1rxqpAeqM9GSCKd66Wp",
        "chain": "solana",
        "tokens": [
          {
            "attributes": {
              "total_liquidity_usd": {
                "details": "LIQUIDITY_TOO_HIGH"
              }
            },
            "average_cost": {
              "amount": "127.643159342305505704",
              "currency": "USD"
            },
            "current_balance": {
              "amount": "1831.966741963714540927",
              "currency": "USD"
            },
            "current_price": {
              "amount": "90.881678182871411309",
              "currency": "USD"
            },
            "raw_balance": "20.157712518",
            "realized_pnl": {
              "amount": "-102.802362175169957013",
              "currency": "USD"
            },
            "token_address": "So11111111111111111111111111111111111111112",
            "unrealized_pnl": {
              "amount": "-741.027368947745798389",
              "currency": "USD"
            },
            "unrealized_pnl_ratio_change": -0.28800196852578236
          }
        ],
        "total_balance": {
          "amount": "1831.966741963714540927",
          "currency": "USD"
        },
        "total_realized_pnl": {
          "amount": "-102.802362175169957013",
          "currency": "USD"
        },
        "total_unrealized_pnl": {
          "amount": "-741.027368947745798389",
          "currency": "USD"
        },
        "total_unrealized_pnl_ratio_change": -0.28800196852578236
      }
    ]
  },
  "items": [
    {
      "items": [
        {
          "address": "125Z6k4ZAxsgdG7JxrKZpwbcS1rxqpAeqM9GSCKd66Wp",
          "chain": "solana",
          "tokens": [
            {
              "attributes": {
                "total_liquidity_usd": {
                  "details": "LIQUIDITY_TOO_HIGH"
                }
              },
              "average_cost": {
                "amount": "127.643159342305505704",
                "currency": "USD"
              },
              "current_balance": {
                "amount": "1831.966741963714540927",
                "currency": "USD"
              },
              "current_price": {
                "amount": "90.881678182871411309",
                "currency": "USD"
              },
              "raw_balance": "20.157712518",
              "realized_pnl": {
                "amount": "-102.802362175169957013",
                "currency": "USD"
              },
              "token_address": "So11111111111111111111111111111111111111112",
              "unrealized_pnl": {
                "amount": "-741.027368947745798389",
                "currency": "USD"
              },
              "unrealized_pnl_ratio_change": -0.28800196852578236
            }
          ],
          "total_balance": {
            "amount": "1831.966741963714540927",
            "currency": "USD"
          },
          "total_realized_pnl": {
            "amount": "-102.802362175169957013",
            "currency": "USD"
          },
          "total_unrealized_pnl": {
            "amount": "-741.027368947745798389",
            "currency": "USD"
          },
          "total_unrealized_pnl_ratio_change": -0.28800196852578236
        }
      ]
    }
  ]
}