> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SimulateTokenContractBuySellErrorEnum

> Error codes for a token contract buy/sell. Reference for the SimulateTokenContractBuySellErrorEnum enum in the Codex API: every value and where it is accepted.

## GraphQL

```
enum SimulateTokenContractBuySellErrorEnum {
  INSUFFICIENT_OUTPUT_AMOUNT
  INSUFFICIENT_LIQUIDITY
  TRANSFER_FAILED
  UNKNOWN_ERROR
}
```

### Used By

**Returned by**

* [getSimulateTokenContractResults](https://docs.codex.io/api-reference/queries/getsimulatetokencontractresults.md): Returns recorded token analyses, including pending and failed requests. Results are ordered by block number descending, then request timestamp descending. Use simulationId to retrieve a specific request.
* [onSimulateTokenContract](https://docs.codex.io/api-reference/subscriptions/onsimulatetokencontract.md): Live-streamed published analysis results for a token, across all simulation IDs. This is not a complete request-status stream: use getSimulateTokenContractResults to check pending, failed or indeterminate outcomes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.