# getEthereumWalletProfitAndLoss

**Identifier:** `zerion_getEthereumWalletProfitAndLoss`

**Provider:** [Zerion](https://kirha.com/providers/zerion.md)

Get the profit and loss information for a given Ethereum wallet address

## Run it with the CLI

```bash
kirha tools run zerion_getEthereumWalletProfitAndLoss \
  --input '{
    "ethereumAddress": "<ethereumAddress>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "zerion_getEthereumWalletProfitAndLoss",
  "input": {
    "ethereumAddress": "<ethereumAddress>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "currency": {
      "default": "usd",
      "enum": [
        "eth",
        "btc",
        "usd",
        "eur",
        "cny",
        "chf"
      ],
      "type": "string"
    },
    "ethereumAddress": {
      "type": "string"
    },
    "fungibleIds": {
      "description": "Filter by specific fungible token ids (e.g eth, usdc_circle, usdt_tether, lido_staked_eth, etc.). Use getFungibleId tool to get the fungible token id",
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "type": "array"
    },
    "zerionChainIds": {
      "description": "Filter by specific chain IDs (e.g ethereum, base, zksync-era, etc.)",
      "items": {
        "enum": [
          "arbitrum",
          "binance-smart-chain",
          "ethereum",
          "blast",
          "ape",
          "avalanche",
          "abstract",
          "opbnb",
          "astar-zkevm",
          "zksync-era",
          "berachain",
          "bob",
          "cyber",
          "degen",
          "fraxtal",
          "gravity-alpha",
          "ink",
          "lens",
          "lisk",
          "mode",
          "base",
          "mantle",
          "optimism",
          "polygon",
          "celo",
          "manta-pacific",
          "xdai",
          "fantom",
          "ronin",
          "linea",
          "metis-andromeda",
          "aurora",
          "xinfin-xdc",
          "cronos-zkevm",
          "polygon-zkevm",
          "polynomial",
          "rari",
          "redstone",
          "scroll",
          "sei",
          "soneium",
          "sonic",
          "swellchain",
          "taiko",
          "unichain",
          "wonder",
          "tomochain",
          "world",
          "zero",
          "okbchain",
          "zklink-nova",
          "zora",
          "re-al"
        ],
        "type": "string"
      },
      "maxItems": 10,
      "type": "array"
    }
  },
  "required": [
    "ethereumAddress"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "chainIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "ethereumAddress": {
      "type": "string"
    },
    "fungibleIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "totalAmountInvested": {
      "type": "number"
    },
    "totalFee": {
      "type": "number"
    },
    "totalRealizedGain": {
      "type": "number"
    },
    "totalReceivedAmount": {
      "type": "number"
    },
    "totalSentAmount": {
      "type": "number"
    },
    "totalUnrealizedGain": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "ethereumAddress",
    "totalRealizedGain",
    "totalUnrealizedGain",
    "totalFee",
    "totalAmountInvested",
    "totalReceivedAmount",
    "totalSentAmount",
    "currency"
  ],
  "type": "object"
}
```

## Related tools

Other Zerion tools that this tool refers to, or that refer to it.

- [`getFungibleId`](https://kirha.com/providers/zerion/getFungibleId.md)

-----

[All Zerion tools](https://kirha.com/providers/zerion.md) · [< Back to tools list](https://kirha.com/tools.md)