AI & agents
StockFi Trade
Stock Token GO/CAUTION/STOP checks and Monday-gap loan stress. Data only. Not for U.S. persons
4 endpoints
Preflight
GO/CAUTION/STOP data checks for a Robinhood Chain Stock Token. Data only.
GET/g/stockfi-trade/v1/preflight
GET https://x402fi.dev/g/stockfi-trade/v1/preflight?symbol=AAPL # 402 Payment Required → sign USDG → retry with PAYMENT-SIGNATURE
Example response
{
"asset": {
"address": "0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9",
"canonical": true,
"currentMultiplier": "1.001090616965388660",
"name": "Apple • Robinhood Token",
"pendingMultiplier": "",
"pendingMultiplierEffectiveTime": null,
"status": "ASSET_STATUS_ACTIVE",
"symbol": "AAPL"
},
"disclaimer": "Data checks only. Not investment advice, not a recommendation, and not an offer. Stock Tokens are not intended for U.S. persons. x402Fi is independent and not affiliated with Robinhood Markets, Inc.",
"market": {
"ask": "357.23",
"askPerToken": "357.6196",
"bid": "357.21",
"bidPerToken": "357.5996",
"generatedAt": "2026-11-13T19:52:59.610019558Z",
"isTradingHalt": false,
"pricesAreUnderlierRaw": true,
"session": "regular"
},
"oracle": {
"chainlink": "358.9761",
"oraclePaused": false,
"stale": true,
"updatedAt": 1794582322,
"weekendFreeze": false
},
"reasons": [
{
"code": "STALE_FEED",
"detail": "Feed is 288 min old during the regular session (threshold 30 min).",
"severity": "CAUTION"
}
],
"route": {
"dexPrice": "357.7640",
"included": false,
"note": "No sizeUsdg: impact and depth not evaluated.",
"premiumBps": -34,
"venue": "uniswap"
},
"verdict": "CAUTION"
}Needs USDG on Robinhood Chain. No gas: x402Fi pays it.
Preflight with route quote
Preflight plus a Uniswap route and price-impact quote for sizeUsdg. Data only.
GET/g/stockfi-trade/v1/preflight/quote
GET https://x402fi.dev/g/stockfi-trade/v1/preflight/quote?symbol=AAPL&sizeUsdg=1000 # 402 Payment Required → sign USDG → retry with PAYMENT-SIGNATURE
Example response
{
"asset": {
"address": "0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9",
"canonical": true,
"currentMultiplier": "1.001090616965388660",
"name": "Apple • Robinhood Token",
"pendingMultiplier": "",
"pendingMultiplierEffectiveTime": null,
"status": "ASSET_STATUS_ACTIVE",
"symbol": "AAPL"
},
"disclaimer": "Data checks only. Not investment advice, not a recommendation, and not an offer. Stock Tokens are not intended for U.S. persons. x402Fi is independent and not affiliated with Robinhood Markets, Inc.",
"market": {
"ask": "357.23",
"askPerToken": "357.6196",
"bid": "357.21",
"bidPerToken": "357.5996",
"generatedAt": "2026-11-13T19:52:59.610019558Z",
"isTradingHalt": false,
"pricesAreUnderlierRaw": true,
"session": "regular"
},
"oracle": {
"chainlink": "358.9761",
"oraclePaused": false,
"stale": true,
"updatedAt": 1794582322,
"weekendFreeze": false
},
"reasons": [
{
"code": "STALE_FEED",
"detail": "Feed is 288 min old during the regular session (threshold 30 min).",
"severity": "CAUTION"
}
],
"route": {
"dexPrice": "357.7640",
"execPrice": "358.1441",
"feeTier": 500,
"fitsSize": true,
"impactBps": 11,
"included": true,
"premiumBps": -34,
"venue": "uniswap"
},
"verdict": "CAUTION"
}Needs USDG on Robinhood Chain. No gas: x402Fi pays it.
Reopen Risk snapshot
Weekend-gap health-factor stress for a wallet's Longbow Stock Token loans. Information only.
GET/g/stockfi-trade/v1/reopen-risk
GET https://x402fi.dev/g/stockfi-trade/v1/reopen-risk?wallet=0xc32A9e2f1092F1D57D3267C2E70b80DA9De06D59 # 402 Payment Required → sign USDG → retry with PAYMENT-SIGNATURE
Example response
{
"wallet": "0x1111111111111111111111111111111111111111",
"asOf": "2026-11-11T16:00:00.000Z",
"session": "regular",
"market": {
"session": "regular",
"feedsResumeAt": "2026-11-11T16:00:00.000Z",
"nextRegularOpen": "2026-11-12T14:30:00.000Z"
},
"report": "snapshot",
"source": "longbow-mcp",
"positions": [
{
"market": "META / USDG",
"collateral": {
"symbol": "META",
"address": "0xc0d6457c16cc70d6790dd43521c899c87ce02f35",
"amount": "10",
"canonical": true
},
"debt": {
"symbol": "USDG",
"amount": "2500"
},
"healthFactor": "1.56",
"liquidationHealthFactor": "1.0",
"liquidationPrice": "400.0000",
"guard": {
"enrolled": false,
"details": null
},
"oracle": {
"kind": "chainlink-24/5",
"price": "625.5105",
"chainlink": "625.5105",
"updatedAt": 1794412740,
"weekendFreeze": false
},
"dexPrice": "625.6000",
"corporateAction": {
"pendingMultiplier": null
},
"scenarios": [
{
"name": "mark_to_dex",
"price": "625.6000",
"healthFactor": "1.56",
"distanceToLiquidationPct": "36.1"
},
{
"name": "gap_down_20",
"price": "500.4084",
"healthFactor": "1.25",
"distanceToLiquidationPct": "20.1"
},
{
"name": "gap_down_40",
"price": "375.3063",
"healthFactor": "0.94",
"liquidatable": true
}
],
"suggestedGuard": {
"healthFactorTrigger": "1.25",
"note": "Information only. Set this in Longbow. This API will not send a transaction."
}
}
],
"excludedNonStockPositions": 0,
"stressSource": "Gap shocks of 20% and 40% from the oracle price (configurable).",
"disclaimer": "Information only. Not a recommendation to repay, add collateral, or borrow. Not investment advice. Model risk applies. Covers Longbow markets on Robinhood Chain only. Stock Tokens are not intended for U.S. persons. x402Fi is independent and not affiliated with Robinhood Markets, Inc. or Longbow."
}Needs USDG on Robinhood Chain. No gas: x402Fi pays it.
Reopen Risk weekend report
Full weekend report: Longbow health-factor scenarios, up-shocks and a short factual summary. Information only.
GET/g/stockfi-trade/v1/reopen-risk/weekend
GET https://x402fi.dev/g/stockfi-trade/v1/reopen-risk/weekend?wallet=0xc32A9e2f1092F1D57D3267C2E70b80DA9De06D59 # 402 Payment Required → sign USDG → retry with PAYMENT-SIGNATURE
Example response
{
"wallet": "0x1111111111111111111111111111111111111111",
"asOf": "2026-11-14T17:00:00.000Z",
"session": "weekend",
"market": {
"session": "weekend",
"feedsResumeAt": "2026-11-16T01:00:00.000Z",
"nextRegularOpen": "2026-11-16T14:30:00.000Z"
},
"report": "weekend",
"source": "longbow-mcp",
"positions": [
{
"market": "META / USDG",
"collateral": {
"symbol": "META",
"address": "0xc0d6457c16cc70d6790dd43521c899c87ce02f35",
"amount": "10",
"canonical": true
},
"debt": {
"symbol": "USDG",
"amount": "2500"
},
"healthFactor": "1.56",
"liquidationHealthFactor": "1.0",
"liquidationPrice": "400.0000",
"guard": {
"enrolled": false,
"details": null
},
"oracle": {
"kind": "chainlink-24/5",
"price": "625.5105",
"chainlink": "625.5105",
"updatedAt": 1794603600,
"weekendFreeze": true
},
"dexPrice": "619.2000",
"corporateAction": {
"pendingMultiplier": null
},
"scenarios": [
{
"name": "mark_to_dex",
"price": "619.2000",
"healthFactor": "1.55",
"distanceToLiquidationPct": "35.4"
},
{
"name": "gap_down_20",
"price": "500.4084",
"healthFactor": "1.25",
"distanceToLiquidationPct": "20.1"
},
{
"name": "gap_down_40",
"price": "375.3063",
"healthFactor": "0.94",
"liquidatable": true
},
{
"name": "gap_up_20",
"price": "750.6126",
"healthFactor": "1.88",
"distanceToLiquidationPct": "46.7"
},
{
"name": "gap_up_40",
"price": "875.7147",
"healthFactor": "2.19",
"distanceToLiquidationPct": "54.3"
}
],
"suggestedGuard": {
"healthFactorTrigger": "1.25",
"note": "Information only. Set this in Longbow. This API will not send a transaction."
}
}
],
"excludedNonStockPositions": 0,
"stressSource": "Gap shocks of 20% and 40% from the oracle price (configurable).",
"disclaimer": "Information only. Not a recommendation to repay, add collateral, or borrow. Not investment advice. Model risk applies. Covers Longbow markets on Robinhood Chain only. Stock Tokens are not intended for U.S. persons. x402Fi is independent and not affiliated with Robinhood Markets, Inc. or Longbow.",
"summary": "META / USDG: health factor 1.56, Chainlink feed in its expected 24/5 freeze; at today's DEX price it would read 1.55; under the 40% gap-down sample it would read 0.94 (below 1.00). Guard not enrolled. Next regular open: 2026-11-16T14:30:00.000Z. Scenarios are model outputs, not forecasts. Information only.",
"summarySource": "template"
}Needs USDG on Robinhood Chain. No gas: x402Fi pays it.