# EVM Canon Base – Holding Period Splitter

> EVM Canon Base – Holding Period Splitter is a paid API for AI agents from evm-canon-base.onrender.com, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-15).

Splits each asset disposal into short-term and long-term capital gain/loss portions based on how long the consumed tax lots were held

## Facts

- Endpoint: POST https://evm-canon-base.onrender.com/lots/holding-period
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-canon-base-holding-period-splitter-e4c85a62
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lqshjG2McWYw3RhA75bKw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability evm-canon-base-holding-period-splitter-e4c85a62 -d '<json body>'
```

Example prompt: Take these token disposal records — each with lot acquisition dates and disposal date — and split every disposal into its short-term and long-term portions so I can fill out my Schedule D correctly.

## When to prefer this

Choose this endpoint when you need holding-period-aware tax lot splitting as a dedicated computation step, especially after running FIFO, HIFO, or average-cost matching on the same platform. Prefer it over general-purpose accounting APIs when you need EVM-native lot structures and exact short/long-term gain attribution per disposal rather than aggregate summaries.

## Known failure modes

- Missing or malformed acquisition/disposal dates preventing holding period calculation
- Lots with zero or negative quantities causing division errors
- Disposal amount exceeding available lot inventory resulting in an error
- Unrecognized token identifiers or mismatched lot references
- Malformed JSON body returning a 400 Bad Request
- Service unavailable on free-tier Render cold start returning 503

## How this service works

Each disposal split into short- and long-term portions by how long the consumed lots were held

## Output

Returns each disposal split into discrete short-term and long-term sub-records, showing the realized gain or loss amount allocated to each portion, the holding period duration for each consumed lot, and the classification (short-term: held ≤1 year, long-term: held >1 year).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "trades"
     ],
     "properties": {
      "method": {
       "enum": [
        "FIFO",
        "LIFO",
        "HIFO"
       ],
       "type": "string"
      },
      "trades": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "side",
         "asset",
         "amount",
         "price",
         "time"
        ],
        "properties": {
         "fee": {
          "type": "string"
         },
         "side": {
          "enum": [
           "buy",
           "sell"
          ],
          "type": "string"
         },
         "time": {
          "description": "unix seconds/millis or ISO-8601"
         },
         "asset": {
          "type": "string"
         },
         "price": {
          "type": "string",
          "description": "unit price in the quote currency"
         },
         "amount": {
          "type": "string",
          "description": "decimal string, never a float"
         }
        }
       }
      },
      "long_term_days": {
       "type": "integer",
       "default": 365
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-canon-base-holding-period-splitter-e4c85a62/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from evm-canon-base.onrender.com](https://www.zero.xyz/host/evm-canon-base.onrender.com/llms.txt)
