Skip to main content
This guide takes you from nothing to a filled order and back out of the position. You need an email address and at least 5 USDC on Arbitrum.
Orders trade real money on Hyperliquid mainnet. The amounts in this guide are small on purpose.
1

Sign in

Go to tradingapi.dev/login and sign in with your email. The first time you sign in, we create your account and a deposit address for it.
2

Deposit USDC

Your account page shows a deposit address. Send native USDC on Arbitrum to it: at least 5 USDC, and at least $30 if you want room to follow every step here.We move USDC from that address to your trading balance automatically, usually within a few minutes. Transfers under 5 USDC wait until the address holds at least 5.
Send only native USDC, and only on Arbitrum. Other tokens and other networks are not credited.
3

Activate trading

On the account page, choose Activate trading. This lets the Trading API place orders for your account. It does not let anything withdraw your money. Activation lasts until the date the page shows; renew it there before it ends.
4

Create an API key

On the account page, create a key and set its limits:
  • Markets: the markets this key may trade, for example BTC and ETH.
  • Max order: the largest single order, in USD.
  • Max per 24 hours: how much the key may place in any 24 hours, in USD.
The key is shown once. Store it somewhere safe, then put it in your shell:
5

Check the key

Ask the API what this key may do:
6

Look at the market

Note min_value and max_value: every order must be worth between them.
7

Preview the order

A preview runs the order without placing it, and shows what would happen:
Check that valid is true. If it is false, errors says what to change.
8

Place the order

Pick a client_order_id that is new for every order. It makes retries safe: if you send the same request twice, you still get one order.
The response usually arrives with the order already filled. Read summary for what happened in plain English.
9

See your position

10

Close it

With no value or percent, this closes the whole position. The response is the closing order.
You have placed an order, read a position and closed it.

Next steps

How orders work

Why the order came to slightly less than you asked for, and what each status means.

Retry safely

What to do when a request times out.