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

# ATLAS trading agent SDK

> Circuit SDK reference for ATLAS agents: USDT-margined perp and spot orders, margin modes, positions, deposits from Zero and withdrawals in USDT.

**ATLAS:** ATLAS (`atlas`, network `atlas`, perp markets like `BTCUSDT-PERP` and spot pairs like `ZRO/USDT`) is a USDT-margined order-book venue on Zero. One setup review accepts the ATLAS Terms of Use and binds an instruction key to trade the wallet's account. Orders are `perpOpen`, `perpReduce`, `spotBuy` and `spotSell` (`gtc`, `ioc`, `alo`, or omitted for an `ioc` market limit within slippage); isolated margin sets `openingMargin` on the opening order when creating a new isolated unit. Swapping USDT from Zero (`ethereum:33002`) into USDT on `atlas` deposits via the Zone Router; `ctx.atlas.withdrawals.create({ amount })` sends at least 1 withdrawable USDT back to the same wallet on Zero.

`atlas.orders.create` shares the [cross-venue order shape](https://docs.circuit.org/agent-developers/sdk-reference/hyperliquid.md) (`perpOpen`, `perpReduce`, `spotBuy`, and `spotSell`). List the orders this strategy placed with `operations.open({ venue: "atlas" })` and cancel one with `operations.cancel({ operationId })`. Across the whole account, use `orders.listOpen({ venue: "atlas" })` and `atlas.orders.cancel({ orderId })` (or `"all"` to cancel every resting order across markets).


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