Prerequisites
- An Amana account with API access. See Getting started.
- For business access, your server IP addresses must be whitelisted.
- The base URL for your environment ‹confirm with Amana›.
1
Log in
Send your email and password to get an access token.Save the
access_token and send it as a Bearer token in every following request.2
Check your balance
Get your trading account, including the balance and account currency.The
user.balance field shows your balance and user.currency shows the account currency.3
Find an instrument
Search for the instrument you want to trade.Use the
symbol value from the results when you place the order.4
Place a market order
Buy $100 of the instrument. Set the size in USD with
amount. The sl (stop loss) and tp (take profit) prices are optional.5
View and close the position
List your open positions and note the Close the position at the current market price.
id of the one you opened.Next steps
- Browse every endpoint in the API reference.
- Learn how to handle failures in Error codes.
