> For the complete documentation index, see [llms.txt](https://blackboard-fi.gitbook.io/blackboard-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blackboard-fi.gitbook.io/blackboard-docs/trade/aster-api.md). Agents can also search and read this documentation through its [MCP server](https://blackboard-fi.gitbook.io/blackboard-docs/~gitbook/mcp).

# Trade through the Aster API

An authorized Aster API agent can trade your Blackboard **Crypto** account. It shares the account’s margin, positions and orders with the app. This guide covers direct access to Aster. For keys issued by Blackboard under **Settings → API keys**, see [Security](https://blackboard-fi.gitbook.io/blackboard-docs/account/security.md).

## Verify the account and permissions

Check **Settings → Account** for the embedded EVM address used as Aster's `user`. Your login wallet, TCG wallet and designated 1000X wallet are not interchangeable with it.

If available, **Export keys** opens Privy's export flow for the selected EVM wallet. A leaked key compromises that address's assets and permissions. Keep it out of repositories, logs, chat and bot configuration.

Use the wallet to authorize a separate agent under [Aster's API documentation](https://github.com/asterdex/api-docs/blob/master/V3%28Recommended%29/EN/aster-finance-futures-api-v3.md). Use the agent for routine trading and limit its permissions. Keep existing app agents intact. Grant withdrawal access only if separately intended.

## Include builder attribution

| Field                          | Production reference                                                                      |
| ------------------------------ | ----------------------------------------------------------------------------------------- |
| API                            | Aster mainnet v3, `https://fapi.asterdex.com`                                             |
| `builder`                      | `0xecD0674915473B0F2D9061dc6a004f18E29a882E`                                              |
| App's builder approval ceiling | `maxFeeRate = 0.001` (0.1%)                                                               |
| Order `feeRate`                | Calculate from current account and venue fees; the approval ceiling is not the order fee. |

Builder and agent approvals are separate. Include the required builder fields in signed orders, including closes and conditional orders where supported. Check each endpoint's specification; batch and strategy endpoints may differ.

Rates use decimal fractions: `0.00025` means **0.025%**. Use the required decimal format and remain within the account's approved cap.

## Calculate the fee

Use current fee settings, the account tier and the account/symbol venue commission. Historical tables are not a current bot quote.

The authenticated Blackboard endpoint `GET /api/users/me/fee-tier?venue=aster` returns:

* `tier.feeAllInTenthBps`: the all-in tier value, including the venue component; it is not the builder `feeRate`.
* `volumeComplete`: whether the volume data is complete. A fresh, successful response with `false` still supplies a valid entry tier or Lifetime Tier floor.
* `seedExpiresAt`: the expiry of recognized external-wallet volume, or `null` when absent. It is not the response's freshness deadline.

The app expires a cached tier at the earlier of the next UTC midnight after fetching and the external-volume expiry. It also rejects retained responses after a failed refresh.

This is an authenticated app endpoint, not a public Aster API or a guaranteed standalone bot login method.

Check response validity, venue commission, current settings, fee floor and approved cap. Never lower the fee using expired, failed or malformed responses, or responses missing required fields. Missing required fields differ from a valid `volumeComplete: false` response. If you cannot establish the current fee, pause the bot and use the app or contact support.

## Rewards and competitions

The same wallet can show the bot's positions in the app, but reward credit also depends on builder attribution, qualifying fees, account matching and program rules.

Check the active terms and credited activity. Key export or a builder address alone does not guarantee Points, referrals, competition entry, retroactive credit or refunds for overpaying fees.

## Before running a bot

Read account identity, agent permissions, builder approval, positions, orders and available margin. This check requires no live order.

Set size and risk limits before trading. After a timeout or unknown response, check venue order status and fills before retrying. Reusing an identifier does not guarantee duplicate prevention.

API changes to leverage, asset mode or position mode also affect the app. Use supported funding routes; this integration does not cover TCG, Prediction or 1000X.

[Fees](https://blackboard-fi.gitbook.io/blackboard-docs/resources/fees.md) · [Crypto perpetuals](https://blackboard-fi.gitbook.io/blackboard-docs/trade/perpetual-trading/crypto-perpetuals.md) · [Security](https://blackboard-fi.gitbook.io/blackboard-docs/account/security.md)
