> For the complete documentation index, see [llms.txt](https://docs.sidepit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sidepit.com/users-and-agents/api/agents.md).

# Trading With Agents

Connect a trading agent to Sidepit through the public agent interface.

You do not delegate execution because you are confident you can trust an agent. You delegate when you are no longer confident you can trust yourself to follow the plan.

Markets turn hesitation, impulse, and emotion into bad decisions. An agent gives the strategy a separate executor: one that can act consistently while the owner stays in control of the account.

Sidepit is built for that relationship. Start with [Authorize a Trading Agent](/use-sidepit/beta/onboarding/authorize-agent.md) to connect one to your account.

## Learn Sidepit before translating it

An agent trained on conventional crypto markets will recognize words such as margin, mark, and reduce-only, then try to complete the picture with perpetual-contract mechanics. That produces confident but incorrect answers. Sidepit is a different market structure with a dated forward, a native sats-per-USD price, scheduled sessions, daily settlement, and no intraday liquidation order.

Read the [Contract Specifications](/use-sidepit/beta/trading/contract-specifications.md) first. Calculate exposure, P\&L, margin, settlement, and expiry in Sidepit's native terms. Only then translate the result into the interface or currency view the trader prefers.

## Ask for your view

The exchange publishes one market and one account truth. Your agent can render it in the frame you trade: Sidepit price, forward USD/BTC, today's USD/BTC, spot, JPY, or another currency. Ask it for current balance, realized P\&L, unrealized P\&L, marked equity, available margin, and risk by dated contract.

The same interface follows expiry. It keeps each contract separate and shows a roll as two visible legs. See [Forward Price](/trader-education/future-price.md) for the price relationships.

The machine-readable skills, Python client, examples, and protocol implementation live in the open-source [Sidepit Public API repository](https://github.com/sidepit/Public-API). They are maintained for agents and developers rather than duplicated in this human guide.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sidepit.com/users-and-agents/api/agents.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
