Browse guides

ETH and BTC trading runs

Price both directions, check costs and compare the AI selector with two independent controls.

On this page

From quote to paired position

The agent looks for both directions. If HSKSwap offers a lower buy total, it can buy an exact quantity there and sell inventory on Global. If the DEX offers a higher sell total, it can sell there and buy the quantity back on Global. Both legs draw on prepositioned inventory. The observation records quantity in ETH or BTC and cash in USDT.

How a paper opportunity becomes a paired trade. A candidate passes the cost and inventory gates, is chosen and rechecked, then follows the DEX fill into a completed or open hedge.

Price the same inventory

At the start of a run, the collector rounds the 25, 50 and 100 USDT target sizes to Global's base-quantity step. It requests a separate HSKSwap quote for each exact size. A DEX buy uses exact output. A DEX sale uses exact input. The exchange estimate walks the order book through enough depth to cover that same quantity.

For the recorded BTC AI plan, the selection and recheck used a rounded quantity of 0.00083 BTC. Expand the source records to read the block hash, original book times and sequence. Inspect the BTC plan starting with ccf3267

Apply the entry gates

InputPaper assumption or rule
CEX taker fee0.12% of the hedge quote value.
Additional execution cost0.05% per venue. The HSKSwap quote already includes the pool fee.
Gas and reserve0.01 USDT modeled gas and 0.05 USDT reserve for entry evaluation. The reserve stays distinct from settled cash movements.
Required edgeExpected net after costs divided by total buy cost must reach 0.003, or 30 basis points.
Ladder filterAt the same size, estimated all-in CEX buy cost minus net CEX sell proceeds must be at most 0.50 USDT. The fixed-100 control skips this filter.

The engine also checks inventories, target assets, loss budget, cooldown, source freshness and previously consumed pool state. After candidate selection, the next acceptable recheck needs a later block and Global book generation and receive times after selection. A failed recheck records a rejection before the first leg.

Compare the selector with controls

Each asset, policy and hedge-delay combination gets an independent paper account. The local AI estimates hedge shortfall by direction using earlier completed, zero-delay baseline trades. It can return WAIT while gathering evidence. The deterministic ladder takes the highest eligible net edge. The fixed control uses the 100 USDT size. Compare one asset and delay at a time. Strategy comparison

Bundled recording, 0 s hedge delayBTC completed pairs / settled USDTETH completed pairs / settled USDT
AI ladder1 / +0.4259430 / 0
Baseline ladder1 / +0.5259301 / +0.206239
Fixed 1001 / +0.9667150 / 0

The recording spans about 35 seconds. The model's BTC trade earned less than either control in this window. A strategy-performance claim requires additional out-of-sample windows and their losses, zero-fill periods and open exposure.

Read the second leg

The hedge uses a Global book whose generation and receipt times follow DEX success. Delay variants add 0, 2 or 5 seconds. A partial fill keeps the plan open with the remaining quantity. In the synthetic lab an adverse mark can trigger a stop. An unknown confirmation can suspend the plan for reconciliation. The ledger retains unsettled exposure when a bounded collector stops. Dashboard and evidence