Skip to main content
GET
/
aiagent
/
charge-fee
/
status
/
{orderHashId}
Fee Status
curl --request GET \
  --url https://pm-t1.bxingupdate.com/bvapi/aiagent/charge-fee/status/{orderHashId} \
  --header 'Authorization: Bearer <token>'
{
  "orderHashId": "<string>",
  "feeAmount": 123,
  "status": "pending",
  "errorReason": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs-t.aionmarket.com/llms.txt

Use this file to discover all available pages before exploring further.

Query the fee charging status for an order on either Polymarket or Kalshi.

Overview

Check whether the platform trading fee has been successfully charged for a given order. Useful for:
  • Confirming fee collection completed after triggering charge_polymarket_fee() or charge_kalshi_fee()
  • Debugging failed fee charges
  • Monitoring fee collection in automated workflows

Path Parameters

ParameterTypeRequiredDescription
orderHashIdstringYesOrder identifier — Polymarket orderHashId or Kalshi txSignature

Query Parameters

ParameterTypeRequiredDescription
venuestringYesMarket venue: polymarket or kalshi

Response

orderHashId
string
The order identifier passed in the request
feeAmount
number | null
Fee amount charged (null if not yet charged)
status
string
Fee status: pending | charged | failed | unknown
errorReason
string | null
Error description if status is failed

Status Values

StatusDescription
pendingFee charge initiated but not yet confirmed
chargedFee successfully deducted from user wallet
failedFee charge failed — check errorReason
unknownOrder not found in the system

Examples

# Check Polymarket fee status
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://pm-t1.bxingupdate.com/bvapi/aiagent/charge-fee/status/0xabc123?venue=polymarket"

# Check Kalshi fee status
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://pm-t1.bxingupdate.com/bvapi/aiagent/charge-fee/status/5rHnS2kT9abc?venue=kalshi"

Notes

  • For Polymarket, status=charged means handleStatus=1 in the order record
  • For Kalshi, fee tracking depends on the Fireblocks transaction completion
  • Polling interval recommendation: check every 10 seconds for up to 2 minutes
  • If status remains pending for > 5 minutes, investigate via Fireblocks console

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orderHashId
string
required

Order identifier (Polymarket orderHashId or Kalshi txSignature)

Query Parameters

venue
enum<string>
required

Market venue

Available options:
polymarket,
kalshi

Response

200 - application/json

Fee status

orderHashId
string
feeAmount
number | null

Fee amount (null if not charged)

status
enum<string>
Available options:
pending,
charged,
failed,
unknown
errorReason
string | null

Error description if failed