Skip to main content
POST
/
v1
/
exchange
/
stablefx
/
fund
Fund trades
curl --request POST \
  --url https://api-sandbox.circle.com/v1/exchange/stablefx/fund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "maker",
  "signature": "0x1234567890abcdef...",
  "fundingMode": "gross",
  "permit2": {
    "permitted": {
      "token": "0xTOKEN",
      "amount": "1000"
    },
    "spender": "0xffd21ca8F0876DaFAD7de09404E0c1f868bbf1AE",
    "nonce": "42",
    "deadline": "1735689600",
    "witness": {
      "id": "10"
    }
  }
}'

Authorizations

Authorization
string
header
required

Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.

Body

application/json

Request body for funding operations

type
enum<string>
required

The type of trader.

Available options:
maker,
taker
signature
string
required

The Permit2 signature

Example:

"0x1234567890abcdef..."

permit2
object
required

The Permit2 message object, either single or batch The message data for Permit2 signature

  • Option 1
  • Option 2
fundingMode
enum<string>
default:gross

The funding mode for the operation (optional) The funding mode for the operation.

Available options:
gross,
net

Response

Funding completed successfully