Allways Access / Developersv1Get your API key
Reference

Statuses

Seven public statuses describe an exchange.

The seven statuses

StatusMeaningTerminal
pendingRate held while the exchange preparesno
awaiting_depositSend exactly fromAmount before validUntilno
confirmingDeposit seen and being confirmedno
exchangingDestination asset is being sentno
finishedComplete; toTxHash is setyes
refundedThe other side failed to deliver; see belowyes
failedSee reasonyes

refunded: the exchange was guaranteed by a deposit in SOL or TAO; when the other side fails to deliver, you receive 110% of the exchange value in that asset (refundAsset is sol or tao), priced when the rate was locked, at your address on that side (refundAddress). A subnet-token leg is paid in TAO to that leg's Bittensor address, as free balance.

reason is set only when status is failed; it is null on every other status.

Failure reasons

reasonMeaningCredit
pool_lostRate could not be retainedrefunded
reserve_rejectedRate could not be reservedrefunded
claim_staleDeposit moved but claim went stale; contact supportrefunded
dest_unpayabletoAddress could not receive the asset. The funds you sent are not returned; only the credit is refunded. Make sure toAddress can receive the asset before you create the exchangerefunded
asset_unavailableThe subnet token in to was shut down before delivery. The funds you sent are not returned; only the credit is refunded. Do not retry the same torefunded
deposit_lapsedNo funds arrived before the deadlinekept; refunded only if the exchange expired before your deposit window ended

Examples

refunded

Responsejson
{
  "status": "refunded",
  "refundAsset": "sol",
  "refundAddress": "9s4hVRU5nfPF9Er9Y5FexDjxNtvZSYmnVEujxHCX5Gsb",
  "reason": null
}

failed

Responsejson
{
  "status": "failed",
  "refundAsset": null,
  "refundAddress": null,
  "reason": "pool_lost"
}