Files
zeekay 4532862f22 fix: use query-param format for crypto bars (sandbox single path 404s)
Same issue as snapshots — Alpaca sandbox returns 404 for
/v1beta3/crypto/us/{sym}/bars but works with
/v1beta3/crypto/us/bars?symbols={sym}. Also handle the wrapped
response format {"bars":{"BTC/USD":[...]}} vs stock {"bars":[...]}.
2025-12-24 00:57:08 -07:00

137 lines
4.7 KiB
JSON

{
"webhook_event": {
"event_id": "evt_trade_spv_001",
"event_type": "trade.executed",
"endpoint": "POST /v1/webhooks/trade",
"timestamp": "2026-03-22T14:32:00.000Z",
"version": "2.0.0",
"transaction_type": "trade",
"blockchain_transaction_id": "0x9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e",
"recipients": [
{
"recipient_id": "rec_001",
"name": "Jefferies LLC",
"role": "buyer_broker_dealer",
"delivered_at": "2026-03-22T14:32:01.123Z",
"delivery_status": "delivered"
},
{
"recipient_id": "rec_002",
"name": "Raymond James Financial",
"role": "seller_broker_dealer",
"delivered_at": "2026-03-22T14:32:01.456Z",
"delivery_status": "delivered"
},
{
"recipient_id": "rec_003",
"name": "Computershare Trust Company",
"role": "transfer_agent",
"delivered_at": "2026-03-22T14:32:01.789Z",
"delivery_status": "delivered"
}
]
},
"transaction": {
"transaction_id": "txn_spv_9i0j1k2l",
"transaction_type": "secondary_market_transfer",
"status": "pending_compliance_clearance",
"initiated_at": "2026-03-22T14:30:00.000Z",
"description": "Secondary market transfer of SPV membership interests \u2014 buyer-initiated",
"security": {
"asset_id": "asset_spv_5o6p",
"asset_name": "Irongate SPV I LLC \u2014 Membership Interests",
"asset_type": "private_security",
"security_class": "Membership Interests",
"share_class": "Common",
"cusip": null,
"isin": null,
"issuer_id": "iss_irongate_spv_i_0007",
"issuer_name": "Irongate SPV I LLC",
"issuer_type": "Special Purpose Vehicle",
"number_of_shares": 100,
"price_per_share": 1000.0,
"currency": "USD",
"gross_trade_amount": 100000.0,
"accrued_interest": 0.0,
"commissions": {
"buyer_broker_dealer": {
"firm_name": "Jefferies LLC",
"crd_number": "44844",
"commission_type": "flat_fee",
"commission_rate": null,
"commission_amount": 500.0,
"currency": "USD"
},
"seller_broker_dealer": {
"firm_name": "Raymond James Financial",
"crd_number": "705",
"commission_type": "percentage_of_gross",
"commission_rate": 0.005,
"commission_amount": 500.0,
"currency": "USD"
},
"total_commissions": 1000.0
},
"net_trade_amount": 101000.0,
"trade_execution_datetime": "2026-03-22T14:30:00.000Z",
"price_determination_method": "negotiated",
"bid_price": 990.0,
"ask_price": 1010.0,
"last_valuation_price": 985.0,
"last_valuation_date": "2026-03-15"
},
"settlement": {
"settlement_date": "2026-03-24T00:00:00.000Z",
"settlement_type": "bilateral",
"settlement_status": "pending",
"settlement_currency": "USD"
},
"restrictions": {
"legend_required": true,
"rule_144_holding_period_met": false,
"transfer_restrictions": "Transfer permitted only with managing member written consent; subject to right of first refusal held by existing members",
"lock_up_expiry_date": "2027-08-01"
}
},
"buyer": {
"investor_id": "inv_entity_irongate_spv_i_0007",
"account_id": "acct_buyer_spv_ii9j0k1l",
"account_type": "entity",
"broker_dealer": {
"firm_name": "Jefferies LLC",
"crd_number": "44844",
"finra_member": true
},
"compliance_ref": {
"endpoint": "GET /v1/investors/inv_entity_irongate_spv_i_0007/compliance",
"description": "Fetch full KYC, KYB, accreditation, PEPs & Sanctions, adverse media, and transaction monitoring data for this investor."
}
},
"seller": {
"investor_id": "inv_indv_patricia_nguyen_0099",
"account_id": "acct_seller_indv_spv",
"account_type": "individual",
"broker_dealer": {
"firm_name": "Raymond James Financial",
"crd_number": "705",
"finra_member": true
},
"compliance_ref": {
"endpoint": "GET /v1/investors/inv_indv_patricia_nguyen_0099/compliance",
"description": "Fetch full KYC, KYB, accreditation, PEPs & Sanctions, adverse media, and transaction monitoring data for this investor."
}
},
"transfer_agent": {
"firm_name": "Computershare Trust Company",
"sec_registered": true,
"sec_registration_number": "84-01234",
"acknowledgment": {
"acknowledged": true,
"acknowledged_at": "2026-03-22T14:32:05.000Z",
"transfer_instruction_id": "ti_spv_ii9j0k1l",
"record_date": "2026-03-22T00:00:00.000Z",
"units_to_transfer": 100,
"status": "pending_transfer"
}
}
}