Browse guides

Hackathon Track 1

Review Track 1 in three minutes using a recorded BTC trade, an ETH stop-loss and a confirmed size change.

On this page

Review the trading loop in three minutes

FlowShield addresses the AI Agent Trading track with two markets on HashKey Chain. It compares exact-size ETH and BTC quotes on HSKSwap with executable spot depth on HashKey Global. The public demo runs the decisions, risk checks, fills and account ledger in paper mode. Official track description

TimeWhat to doWhat to look for
0:00Open the market recording, expand Market record for BTC, then choose Check live market.Compare the recorded block and book timestamps with the on-demand quote's timestamps.
0:40Open the Decision ledger, filter to AI ladder and 0 s, and open the BTC plan starting with ccf3267.The selected 0.00083 BTC opportunity passed a later price recheck. Its paper DEX sale and CEX hedge settled +0.425943 USDT with zero residual BTC.
1:20Open the synthetic hedge lab and inspect the ETH plan starting with 91aa127.An adverse move after entry triggered the stop-loss path. Hedge completion closed the 0.05 ETH exposure at a loss of 16.687691 USDT.
2:00In the lab Workspace, ask Show ETH positions and P&L, then Set position size to 25 USDT. Confirm the proposal and select Replay with settings.The new replay applies the cap to candidate selection. Compare the two runs' chosen sizes, completed pairs and settled P&L.

For a presentation without network access to the venues, the local seed includes the recording and synthetic lab. The live probe requires both venue connections. Quickstart

Trace the track requirements

Track requirementInspect in FlowShield
Monitor markets and analyze on-chain dataExact-input sales, exact-output buys, block numbers and Global depth for the same rounded quantity. Market record
Detect spread opportunities and generate signalsThe 25, 50 and 100 USDT ladder evaluates both directions with depth, fees, gas, slippage and a reserve. The selector chooses an eligible candidate or waits. Trading rules
Execute autonomously and manage positionsEach paper plan links the recheck, DEX fill, CEX hedge and venue balances. The separate private runner journals signed transaction intent and reconciles the spot order. Execution boundary
Enforce risk controls and stop-loss rulesThe lab exposes partial fills, residual exposure, stops and uncertain confirmations. Inspect an outstanding hedge after a bounded session ends. Outstanding hedges
Show P&L and adjust activity in conversationAsk about positions, realized results and waits. Change the position cap, trade cooldown, loss budget or target assets and confirm the new settings. Chat controls

Read the spread before drawing conclusions

Fixed-100 DEX sell edges from the bundled recording, with seven BTC observations above the 30-basis-point threshold, five usable ETH observations below it and two stale ETH books

The chart prices a single direction at a fixed size in the 35-second recording. Each point represents an observation. A completed pair also needs an eligible account, a fresh recheck and a filled hedge. Compare the AI ladder, deterministic baseline and fixed-100 control at the same delay to see how their actual decisions differ. Strategy comparison

Read the two HSKSwap receipts

Open Confirmed two-pool trades on the Testnet dashboard. Choose BTC to follow one purchase and sale from start to finish. Both swaps share one transaction hash. Testnet dashboard

StepBTC example
Buy in pool AThe wallet spent 0.001600 tUSDT to buy 2 satoshis of test BTC.
Sell in pool BThe router sold both satoshis for 0.001751 tUSDT. If this sale had failed, the purchase would have reverted too.

The second receipt follows the same route structure for test ETH. For each trade the team set pool B's price, supplied its liquidity and withdrew it after the trade. The wallet's swap proceeds exclude gas and the team's liquidity position. These receipts establish on-chain execution under those conditions. A naturally occurring profitable spread and a HashKey Global hedge require separate evidence. BTC receipt and ETH receipt

Scope of the evidence

The market recording demonstrates decision traceability. The synthetic stop demonstrates how a loss reaches the ledger. Sustained profitability would require longer out-of-sample market windows, fees, gas, delayed and partial hedges, and every open exposure. Each run starts fresh comparison accounts.

The team used its Solidity executor on HashKey public testnet to swap 0.0005 WHSK for 0.032926053821518213 test USDT at block 36,513,988. This standalone DEX rehearsal records a confirmed swap and reconciled token amounts. The ETH/BTC paired SIM hedge remains pending. Testnet swap receipt. Verification of a funded mainnet pair still needs a deployed executor address, a canonical swap receipt, the authenticated exchange order and fills, and a reconciliation of both venue balances. DEX execution boundary