Skip to main content
POST
/
kalshi
/
submit
Kalshi Submit
curl --request POST \
  --url https://pm-t1.bxingupdate.com/bvapi/kalshi/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "quoteId": "<string>",
  "signedTransaction": "<string>",
  "userPublicKey": "<string>",
  "venue": "kalshi",
  "source": "<string>",
  "skillSlug": "<string>",
  "reasoning": "<string>",
  "idempotencyKey": "<string>"
}
'
{
  "orderId": "<string>",
  "venueOrderId": "<string>",
  "status": "<string>",
  "filledSize": "<string>",
  "avgPrice": "<string>",
  "txHash": "<string>",
  "syncedToMkOrder": true,
  "syncedToStrategyLog": true,
  "venue": "<string>",
  "aiAgentId": "<string>",
  "userId": "<string>"
}
Broadcasts a pre-signed Solana transaction to DFlow and records the order in the platform database. Call this immediately after signing the unsignedTransaction returned by POST /kalshi/quote.

Notes

  • Signature must be produced on client/agent side.
  • Server does not store or process private keys.
  • Successful submit syncs order into mk_order and writes strategy log.

Request fields

FieldTypeRequiredDescription
venuestringNodefault kalshi
quoteIdstringYesquote id from /kalshi/quote
signedTransactionstringYessigned payload
userPublicKeystringYessigning wallet
sourcestringNosource tag
skillSlugstringNoskill tag
reasoningstringNostrategy reason
idempotencyKeystringNodedupe key

Example

curl -X POST "https://pm-t1.bxingupdate.com/bvapi/kalshi/submit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "quoteId": "qt_1234567890",
    "signedTransaction": "BASE64_SIGNED_TX",
    "userPublicKey": "8Yj7Dfp8oS3wkt2uP12xMz9VfF7ZzBv4qfB8Zbe8vXJ1",
    "source": "sdk:kalshi-weather",
    "reasoning": "NOAA forecast indicates edge"
  }'

Response

{
  "orderId": "ks_abcd1234",
  "venueOrderId": "ord_98765",
  "status": "OPEN",
  "filledSize": "0",
  "avgPrice": "0.61",
  "txHash": null,
  "syncedToMkOrder": true,
  "syncedToStrategyLog": true,
  "venue": "kalshi",
  "aiAgentId": "10000001",
  "userId": "26"
}

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

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

Body

application/json
quoteId
string
required
signedTransaction
string
required
userPublicKey
string
required

签名钱包地址(Solana)

venue
string
default:kalshi
source
string
skillSlug
string
reasoning
string
idempotencyKey
string

Response

200 - application/json

Submit result

orderId
string
venueOrderId
string
status
string
filledSize
string
avgPrice
string
txHash
string | null
syncedToMkOrder
boolean
syncedToStrategyLog
boolean
venue
string
aiAgentId
string
userId
string