Epsilon

v0.4.0
io.github.alienbase-xyz/epsilon Checked 1 day ago Published 1 month ago

Non-custodial limit, stop-loss and DCA trading on Epsilon (Robinhood Chain) for AI agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_quote

Best executable quote for swapping token_in → token_out on Epsilon (Robinhood Chain): expected output in human units, price impact in ppm, and a split suggestion for large orders. Quote first, then place_limit_order or place_dca_order. This only quotes — it never executes anything.

ParameterTypeDescription
amount_in *stringamount of token_in to sell, human units (e.g. "1.5")
token_in *string
token_out *
slippage_bpsintegerslippage tolerance in basis points

get_order

One Epsilon order by hash: status (pending/active/filled/cancelled/expired), parameters and fills. Use list_orders to find a wallet’s orders first; use get_portfolio for balances plus open orders together.

ParameterTypeDescription
order_hash *string

get_market_stats

Engine-wide Epsilon market stats: order counts by status, fill counts, volume aggregates. For a single token use search_tokens or get_token; for a wallet use get_portfolio.

search_tokens

Resolve a token symbol or name to its address and decimals — call this FIRST when the user names a token; every other tool takes addresses. Results carry volume30dUsd, which disambiguates same-symbol tokens: the real one has volume. Empty search returns the top tokens by 30-day volume.

ParameterTypeDescription
limitinteger
searchstringsymbol or name fragment (e.g. "USDG"), or an exact 0x address

list_orders

List Epsilon orders by maker wallet (defaults to the configured trading wallet), status, and/or type. Newest first.

ParameterTypeDescription
limitinteger
statusstringe.g. active, filled, cancelled
typestringe.g. limit, dca, trailing
walletstringmaker wallet; defaults to the configured trading wallet

get_portfolio

One-call portfolio view for a wallet (defaults to the configured trading wallet): native ETH balance, balances of the top-volume tokens and every token in the wallet’s open orders, plus the open orders themselves.

ParameterTypeDescription
walletstringwallet to inspect; defaults to the configured trading wallet

get_token

One token by address: metadata plus, when a wallet is configured, its balance and current Epsilon router allowance (tells you whether approve_token is needed before an order). Use search_tokens to resolve a symbol to an address first.

ParameterTypeDescription
token *string

get_wallet

The configured trading wallet: address, native ETH balance, chain, and the router orders are approved against. For token balances and open orders use get_portfolio.

approve_token

Approve the Epsilon router to spend a token from the trading wallet (required once per token before placing orders). Sends an on-chain transaction and waits for confirmation.

ParameterTypeDescription
amount *human-unit amount to approve, or "max" for unlimited
token *string

place_limit_order

Place a signed limit or stop-loss order on Epsilon. Limit: fills when the market reaches limit_price or better. Stop-loss (stop_loss=true): triggers when price drops to limit_price. The order is signed locally with the configured wallet and executed by keepers — funds stay in the wallet until fill. limit_price is expressed as token_out received per 1 token_in. Requires a prior approve_token for token_in.

ParameterTypeDescription
amount_in *stringamount of token_in to sell, human units
limit_price *stringtrigger price: token_out per 1 token_in, human units
token_in *stringtoken to sell
token_out *stringtoken to buy
confirmbooleanset true to confirm placement (only required when the server runs with EPSILON_REQUIRE_CONFIRM=1)
expiry_hoursnumberorder lifetime in hours; 0 = never expires
slippage_bpsintegermax fill slippage in basis points
stop_lossbooleantrue = stop-loss semantics (trigger below market)

place_dca_order

Place a signed DCA (dollar-cost-average) order on Epsilon: total_amount_in of token_in is sold for token_out in equal chunks, one every interval_seconds, executions times. One signature covers the whole schedule. Requires a prior approve_token covering total_amount_in.

ParameterTypeDescription
executions *integernumber of chunks
interval_seconds *integerseconds between executions
token_in *stringtoken to sell
token_out *stringtoken to buy
total_amount_in *stringTOTAL amount of token_in across all executions, human units
confirmbooleanset true to confirm placement (only required when the server runs with EPSILON_REQUIRE_CONFIRM=1)
slippage_bpsintegermax fill slippage in basis points

cancel_order

Cancel a pending Epsilon order. Signs an EIP-712 cancellation with the configured wallet — only the order maker can cancel.

ParameterTypeDescription
order_hash *string