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

# API Overview

Connect scripts and AI tools to your Fluvion trading account. Start with read-only requests before enabling live execution.

## Connection settings

| Setting            | Value                                  |
| ------------------ | -------------------------------------- |
| Website            | <https://fluvion.io>                   |
| API key management | <https://fluvion.io/portfolio/api-key> |
| Broker ID          | `fluvion`                              |
| Mainnet REST       | `https://api.orderly.org`              |
| Testnet REST       | `https://testnet-api.orderly.org`      |

These are the actual infrastructure endpoints, not URLs under the Fluvion website. Protocol header names must remain unchanged. The broker ID is used in account registration/lookup, not added arbitrarily to every trading request. Mainnet and testnet credentials are separate.

## Start here

Start with the [API Quickstart](/api-trading/quickstart.md), then:

1. [Create an API key](/api-trading/api-keys.md).
2. [Sign your first read request](/api-trading/authentication.md).
3. [Inspect account state](/api-trading/account-data.md).
4. [Preview and submit a trade](/api-trading/trading.md).
5. Review [security and troubleshooting](/api-trading/security.md) and [AI agent integration](/api-trading/agents.md).

## Verification status

Mainnet integration checks completed on 2026-09-07: signed account/holdings/positions/orders reads, key scope lookup, single-symbol leverage update, and an IOC order filled successfully. This is not a guarantee of future execution. Cancellation, amendment, closing, TP/SL and private streaming require separate integration tests before being exposed by an automated agent.

API trading uses real funds on mainnet. An API key is not a wallet seed phrase. Revoking a key does not cancel orders or close positions.


---

# 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.fluvion.io/api-trading/api.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.
