Hyperliquid and Aster API: funding, fees, copy a bot
Compare funding and fees on Hyperliquid and Aster with one API key, then copy a bot from one exchange to the other as a draft. Curl and Python examples.
By the Prow teamPublished Updated 7 min read
On this page
- How do I compare funding on Hyperliquid and Aster with an API?
- How do I compare fees across venues?
- How do I move a bot from Hyperliquid to Aster?
- How do I find a funding arbitrage pair across the two?
- What the API does not cover
- Frequently asked questions
- Is there one API for Hyperliquid and Aster?
- Does Aster have its own API?
- Can I compare funding rates between exchanges with one call?
- Will the copy keep my stop loss?
- Do I need a separate key per venue?
- Sources
With one Prow API key you can read funding, prices and fees on Hyperliquid and Aster in the same format, build a bot on either, and copy a bot from one to the other. You do not write two exchange integrations, two signing schemes or two sets of error handling. One call returns both venues' funding rates side by side. One call, duplicate_bot, copies a grid or DCA bot to the other exchange as a new draft with its prices moved to that market's price. You still start every bot yourself in Prow.
This guide covers the three jobs people ask for: compare funding and fees, move a bot, and find a pair for a funding arbitrage bot. Numbers in the examples are made up.
How do I compare funding on Hyperliquid and Aster with an API?
Ask for one coin. The answer has a row per venue, and Lighter appears too because Prow reads its markets:
export PROW_KEY="paste your key here"
export API="https://app.prowdex.com/api/v1"
curl -sS "$API/funding?coin=ETH" -H "x-api-key: $PROW_KEY"
Each row has venue, market, funding_hourly, funding_apr and open_interest_usd as decimal strings. Two things to keep straight:
- The rate is hourly and a fraction.
0.0000125is 0.00125 percent an hour.funding_apris the hourly rate times 24 times 365, also a fraction, so0.1095is about 10.95 percent a year. Prow reports both venues on the same hourly basis, so you can subtract one from the other. For why funding exists and how it is paid, see Hyperliquid funding rates explained. - The sign tells you who pays. When it is positive, longs pay shorts. When it is negative, shorts pay longs. It changes, and it can turn negative.
To find where the gap is widest, ask for the markets with the largest absolute funding on one venue:
curl -sS "$API/markets?venue=aster&sort=funding&limit=10" -H "x-api-key: $PROW_KEY"
A short script puts the two venues side by side for any coin. It needs pip install requests.
import os
import sys
from decimal import Decimal
import requests
API = "https://app.prowdex.com/api/v1"
HEADERS = {"x-api-key": os.environ["PROW_KEY"]}
COIN = sys.argv[1] if len(sys.argv) > 1 else "ETH"
r = requests.get(API + "/funding", params={"coin": COIN}, headers=HEADERS, timeout=30)
body = r.json()
if not r.ok:
sys.exit(f"{r.status_code} {body['error']['code']}: {body['error']['message']}")
apr = {row["venue"]: Decimal(row["funding_apr"]) for row in body["data"]}
for venue, rate in sorted(apr.items()):
print(f"{venue:12} {rate * 100:8.2f} % a year")
if "hyperliquid" in apr and "aster" in apr:
gap = apr["hyperliquid"] - apr["aster"]
print(f"gap Hyperliquid minus Aster: {gap * 100:.2f} points a year")
The gap is a reading, not a promise. Trading costs and price moves between the two legs can use it up, which is what funding rate arbitrage on Hyperliquid and Aster explains.
How do I compare fees across venues?
curl -sS "$API/fees" -H "x-api-key: $PROW_KEY"
The answer lists each venue's base-tier perpetual taker and maker fee, and what Prow adds. The fees are in percent: taker_pct: "0.045" means 0.045 percent. They are the base tier: your own rate can be lower with volume or staking, and the API does not know your tier. Prow's fee applies to trades made in Prow and is 0% until Dec 31, 2026, then 0.025% per trade. For the two venues explained, see Hyperliquid fees and Aster fees, and for the side-by-side view Aster vs Hyperliquid.
GET /markets/{venue}/{market} returns one market's price, 24 hour change, open interest, maximum leverage, funding and fees in one answer, so a script can compare the same coin on both venues before it builds anything.
How do I move a bot from Hyperliquid to Aster?
Copy it. duplicate_bot takes a bot (a draft, a running bot or a stopped one) and makes a new draft on the venue you name. You need an Aster account connected in Prow, otherwise the answer is no_account.
curl -sS -X POST "$API/bots/aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa/duplicate" -H "x-api-key: $PROW_KEY" -H "Content-Type: application/json" \
-d '{"venue":"aster"}'
What the copy does:
- Prices move with the market. The range, stops, triggers and trailing limits are rescaled to the new market's current price. The answer's
copied_fromshowsprice_before,price_nowand, for a grid,range_beforeandrange_after, and themessagesays so in words. - Everything else is copied as it is. Percentages, the number of levels, order sizes, leverage and the investment.
- The market keeps its name when Aster lists the same coin. A market quoted in another currency is written like
BNC-USD1, andlist_marketsshows the exact name. - The new market can refuse it. Aster allows at most 100 levels where Hyperliquid allows 150. A short or neutral grid runs only on the deepest markets. An order below the venue's minimum fails too. The answer is
invalid_settingswith the reasons, and you fix them by sending the settings withcreate_bot_draft. - The old bot is not touched. Copying to another exchange needs no stop. Start the copy in Prow with your own signature, then stop the old bot if you want it gone. A stop closes its position at the market price.
The money does not move. A bot on Aster uses what is on Aster, so the account there has to hold the investment. To change a draft instead of copying, PUT /bots/drafts/{bot_id} accepts venue and market. The stops and changes cookbook shows both.
How do I find a funding arbitrage pair across the two?
Prow's scanner reads both venues for you. List what it sees now:
curl -sS "$API/arbitrage-opportunities?kind=funding&limit=5" -H "x-api-key: $PROW_KEY"
By default the list holds only what a Prow bot can run, so it can be empty. Add &tradable_only=false to see everything the scanner reads and why a bot cannot run it. Each row names the coin, the long_venue and short_venue, funding_spread_pct_a_year, after_costs_pct_a_year and bot_can_run. These two rates are already in percent, unlike funding_apr, which is a fraction. A row that a bot can run and that is positive after costs has a draft_hint that you pass to POST /two-leg-bot-links. A row that loses after costs has draft_hint set to null, because a bot would not enter it. An arbitrage bot is made in Prow only when you start it, so it keeps no draft: you get a link that opens its form with the settings filled in. list_bot_types shows whether arbitrage bots are on for you.
curl -sS -X POST "$API/two-leg-bot-links" -H "x-api-key: $PROW_KEY" -H "Content-Type: application/json" \
-d '{"type":"arbitrage","draft":{"strategies":["funding"],"coins":["ETH"],"capitalUsd":1000,"pairUsd":500,"leverage":2,"maxPairs":1}}'
The bot goes long where funding is lower and short where it is higher, so it collects the difference while it lasts. The money must already be on each venue, and the difference is small and can turn negative. Read How crypto arbitrage bots work before you start one.
What the API does not cover
- Aster account data. Balances, positions and fills can be read for Hyperliquid only. Aster account reads are not available through the API. Bots on Aster still show their own results through
GET /bots/{bot_id}. - Lighter bots. Prow's API reads Lighter markets and funding, but bots and drafts are built on Hyperliquid and Aster.
- Orders. The API does not place or cancel orders, and a key cannot start a bot. That is the same on both venues.
The full list of calls is in the tool list. To begin, create a key with Build, pause and stop your bots ticked. The API quick start shows how to connect a script or an assistant.
Frequently asked questions
Is there one API for Hyperliquid and Aster?
Prow's API reads both venues in one format and builds bots on both. It does not forward orders to them: you start bots in Prow with your own signature. If you want to send your own orders, each venue has its own API.
Does Aster have its own API?
Yes. Aster publishes API documentation for developers. Prow handles Aster for you, so the Prow key is the only one your script holds.
Can I compare funding rates between exchanges with one call?
Yes, GET /funding?coin=ETH returns every venue's row for the coin. Add venue to limit it to one, or sort=funding to put the largest absolute rates first.
Will the copy keep my stop loss?
It keeps a stop, and moves it with the new market's price together with the range. Read it in the draft the answer returns and change it with update_bot_draft before you start.
Do I need a separate key per venue?
No. One Prow key works for both. You do need an account on each venue connected in Prow.
Sources
Checked December 6, 2026:
- Prow docs: Cookbook: stops and changes, Cookbook: build bots, Cookbook: read results, Concepts
- Prow API: openapi.json
- Aster: API documentation