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

# Trader Quickstart

> Approve USDC and place a first Ostium trade with the Builder SDK.

## 1. Create a client

```ts theme={null}
import { OrderType, OstiumClient } from '@ostium/builder-sdk';

const client = await OstiumClient.createSelfAndSelf({
  traderPrivateKey: process.env.TRADER_PRIVATE_KEY as `0x${string}`,
  rpcUrl: process.env.ARB_RPC_URL!,
});
```

## 2. Approve USDC

```ts theme={null}
await client.approveUsdc('max');
```

## 3. Submit your first trade

```ts theme={null}
const result = await client.openTrade({
  pairId: 0,
  buy: true,
  price: '65000',
  collateral: '100',
  leverage: '10',
  type: OrderType.Market,
});
```

## 4. Track status

```ts theme={null}
const orders = await client.getOrders({
  initiatedTxHashes: [result.txHash],
});
```
