Documentation

Integrate Float.

Float is an aggregator for the Canton Network. One integration gives your users a route from 2,000+ assets into CC, and back out again, quoted across three exchange partners. No account is needed to read these docs; you need an API key only to go live.

The API suits wallets, portfolio apps, payment providers and any product whose users need CC without leaving it.

Swap flow

1
GET /api/float/assets?q=&limit=50
Search the 2,000+ supported assets. Queried, not downloaded — pass q to filter.
2
POST /api/float/quote
Returns the winning route and every alternative, so you can show the choice.
3
POST /api/float/order
Opens the order and returns the deposit address. Moves no money — the user sends the deposit themselves.
4
GET /api/float/order/:claimToken
Poll for status. The token comes back from step 3 and needs no account.

Create an order

POST https://slay-money-api.slay-money-api.workers.dev/api/float/order
Content-Type: application/json
Authorization: Bearer fl_live_…        # optional — attributes the order to you

{
  "direction":   "in",                 # "in" = receive CC, "out" = spend CC
  "from":        "BTC",                # asset you send, on "in"
  "amount":      "0.05",
  "destination": "yourname::1220e8c7…",# Canton party ID, on "in"
  "rateType":    "float"               # or "fixed"
}

# On "out", pass "to" for the asset you want back, and "destination"
# is an address on that asset's own chain.
Statuses
pending, settled, refunded, failed, expired. Read them from the order, not from the venue — the venue has its own vocabulary and Float normalises it.
Tracking
GET /api/float/order/:claimToken works with the token alone, so users can reopen an order without an account.

Affiliate program

Every order created with your key or referral link credits 0.2% of the swap amount to your balance, paid in CC. Track earnings, referral links and billing from the partner dashboard.

API keys

1. Create as many API keys as you need; there is no limit.
2. Never disclose a key. Bind it to your server IPs for extra safety.
3. Keys are shown once, at creation. Store them safely.
Create account / Log insupport@myfloat.cc