List USDhb activity
One entry per applied USDhb money movement (mint, redeem, stake, unstake, off-venue withdrawal or deposit), cursor-paginated on the same global event sequence as fills; each entry is the WebSocket account frame for that event without its channel field.
GET
https://testnet.hardbasis.com/v1/usdhb/activitybash
curl -fsS "$HB/v1/usdhb/activity" \
-H "x-api-key: $HB_KEY"python
import os
import requests
HB = os.environ.get("HB", "https://testnet.hardbasis.com")
resp = requests.get(
f"{HB}/v1/usdhb/activity",
headers={
"x-api-key": os.environ["HB_KEY"],
},
)
resp.raise_for_status()
print(resp.json())ts
const HB = process.env.HB ?? "https://testnet.hardbasis.com";
const res = await fetch(`${HB}/v1/usdhb/activity`, {
method: "GET",
headers: {
"x-api-key": process.env.HB_KEY!,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());json
{
"activity": [
{
"seq": "100000",
"tsMs": "100000",
"type": "UsdhbMintAccepted",
"payload": {
"quoteId": "string",
"accountId": "string",
"usdhbMicro": "100000",
"contracts": "100000",
"priceQ8": "100000",
"execPriceQ8": "100000",
"satsInMsat": "100000",
"feeMsat": "100000",
"impactMsat": "100000",
"gapMsat": "100000",
"edgeMsat": "100000",
"usdhbBalanceAfterMicro": "100000"
}
}
],
"nextBeforeSeq": "100000"
}json
{
"error": "string",
"code": "unauthorized"
}json
{
"error": "string",
"code": "compliance_refused"
}json
{
"error": "string",
"code": "rate_limited"
}Query parameters
limitstringoptionalPage size, 1..200 (default is the endpoint's historical window, not a cap).
beforeSeqstringoptionalCursor: return rows strictly before this sequence (decimal). Omit for page one.
Responses
200 OKactivityobject[]requiredShow 36 child fields
when
type = UsdhbMintAcceptedseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbMintAcceptedrequiredpayloadobjectrequiredShow 12 child fields
quoteIdstringrequiredaccountIdstringrequiredusdhbMicrostringintrequiredcontractsstringcontractsrequiredpriceQ8stringq8requiredexecPriceQ8stringq8requiredThe venue's hedge-short fill price (oracle midQ8 moved by the spread). Impact is not included in this price; see impactMsat.
satsInMsatstringmsatrequiredTotal sats debited from the account's free balance for this mint (the quoted amount): margin + feeMsat + the quoted positive impact. Fee and impact are included in satsInMsat, never charged on top.
feeMsatstringmsatrequiredNot an account movement on its own: the mint base fee, included in satsInMsat (not charged separately).
impactMsatstringmsatrequiredNot an account movement: the hedge open's signed price impact at execution (< 0 is a rebate the reserve keeps). The account pays only satsInMsat, which included the QUOTED impact; any difference is gapMsat or edgeMsat, borne by the venue.
gapMsatstringmsatrequiredNot an account movement: what the reserve covered because the mark moved against the venue since the quote. Never debited from the account; >= 0.
edgeMsatstringmsatrequiredNot an account movement: the quote surplus the reserve kept because the mark moved in the venue's favour. Never credited to the account; >= 0.
usdhbBalanceAfterMicrostringintrequiredwhen
type = UsdhbRedeemQueuedseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbRedeemQueuedrequiredpayloadobjectrequiredShow 8 child fields
quoteIdstringrequiredaccountIdstringrequiredusdhbMicrostringintrequiredcontractsstringcontractsrequiredsatsOutQuotedMsatstringmsatrequiredNot an account movement yet: the quoted payout, net of the quoted fees and impact (they are included in this figure, not charged on top). Nothing is credited until UsdhbRedeemed.
reasonstringrequiredusdhbBalanceAfterMicrostringintrequiredusdhbPendingAfterMicrostringintrequiredwhen
type = UsdhbRedeemedseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbRedeemedrequiredpayloadobjectrequiredShow 5 child fields
quoteIdstringrequiredaccountIdstringrequiredsatsOutMsatstringmsatrequiredSats paid out: positive means credited to the account's free balance. Net figure: the base fee, dynamic fee and positive impact are already deducted (included in this amount, not charged separately).
usdhbBalanceAfterMicrostringintrequiredusdhbPendingAfterMicrostringintrequiredwhen
type = UsdhbStakedseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbStakedrequiredpayloadobjectrequiredShow 5 child fields
accountIdstringrequiredusdhbMicrostringintrequiredsusdhbBalanceAfterMicrostringintrequiredwhen
type = UsdhbUnstakeRequestedseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbUnstakeRequestedrequiredpayloadobjectrequiredShow 4 child fields
unstakeIdstringrequiredaccountIdstringrequiredreleaseAtMsstringmsrequiredwhen
type = UsdhbUnstakedseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbUnstakedrequiredpayloadobjectrequiredShow 6 child fields
unstakeIdstringrequiredaccountIdstringrequiredusdhbMicrostringintrequiredusdhbBalanceAfterMicrostringintrequiredwhen
type = UsdhbWithdrawalRequestedseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbWithdrawalRequestedrequiredpayloadobjectrequiredShow 6 child fields
withdrawalIdstringrequiredaccountIdstringrequiredusdhbMicrostringintrequiredtoAddressstringrequiredusdhbBalanceAfterMicrostringintrequiredusdhbPendingAfterMicrostringintrequiredwhen
type = UsdhbWithdrawalPaidseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbWithdrawalPaidrequiredpayloadobjectrequiredShow 5 child fields
withdrawalIdstringrequiredaccountIdstringrequiredusdhbMicrostringintrequiredtoAddressstringrequiredissuerRefstringrequiredwhen
type = UsdhbDepositCreditedseqstringseqrequiredtsMsstringmsrequiredtypeconst UsdhbDepositCreditedrequiredpayloadobjectrequiredShow 5 child fields
accountIdstringrequiredusdhbMicrostringintrequiredtxIdstringrequiredfromAddressstringrequiredusdhbBalanceAfterMicrostringintrequirednextBeforeSeqstring | nullseqrequiredErrors
Match on code, never on the message. Full taxonomy in Errors.
| Code | Status | Retry |
|---|---|---|
compliance_refused | 403 | final |
insufficient_scope | 403 | final |
rate_limited | 429 | retryable |
referral_forbidden | 403 | final |
session_limit | 403 | final |
unauthorized | 401 | final |
401, 403: A refusal carrying a stable machine code (ErrorCode) beside human error prose.429: A token bucket is exhausted.