DEVELOPER & PARTNER INTEGRATION
ZERO-KYC • ANONYMOUS • NON-CUSTODIAL

Integrate Non-Custodial Swaps & Earn Revenue Share

Embed BITFUN directly into your portal, wallet, or dApp in under 2 minutes, or build a custom interface with our public REST API. Every completed swap attributed to your partnerKey automatically credits your commission balance.

STEP 01
Apply & Get Keys

Receive your public partnerKey and private Partner Portal secret.

STEP 02
Embed or Call API

Drop in our 2-line widget or integrate POST /api/swap.

STEP 03
Earn Automatically

Track completed swaps & USD earnings live on /partner.

BASE URL
https://bitfun.trade
NETWORKS
BSC & Ethereum (Cross-Chain)
MAX SINGLE SWAP
$25,000 USD

Widget & Affiliate Integration

Zero-maintenance swap UI with live quotes, QR deposit codes, and order tracking.

HTML Script Tag (2 Lines)
<!-- BITFUN Instant Swap Widget -->
<div
  id="cyberswap-widget"
  data-partner="pk_live_your_partner_key"
  data-from="ETH"
  data-from-network="ETH"
  data-to="CYBER"
  data-to-network="BSC"
  data-chart="false"
></div>
<script src="https://bitfun.trade/embed.js" async></script>

Public REST API Reference

JSON over HTTPS. No authentication header required for public quotes and order creation.

GET/api/tokens?public=true
Cached 3s

Returns all active tokens, live USD prices (oracle + virtual AMM spot prices), networks, decimals, contract addresses, fees, and min/max deposit limits.

ParameterTypeRequiredDescription
publicbooleanOptionalSet to true to return only active tradeable tokens.
cURL Request
curl -s "https://bitfun.trade/api/tokens?public=true"
GET/api/platform-settings
Cached 5s

Fetches global platform configuration (maintenance mode, default fee, max single swap USD) and resolves your partner commission percentage when partnerKey is provided.

ParameterTypeRequiredDescription
partnerKeystringOptionalYour public partner API key (e.g. pk_live_...).
cURL Request
curl -s "https://bitfun.trade/api/platform-settings?partnerKey=pk_live_your_partner_key"
POST/api/swap
10 req / min per IP

Creates a new non-custodial swap order and generates a unique BIP-44 deposit address valid for 20 minutes. Pass your partnerKey (or apiKey alias) to attribute commission to your account.

ParameterTypeRequiredDescription
fromTokenstringRequiredSource token symbol (2–15 alphanumeric chars, e.g. ETH, BNB, USDT).
fromNetworkstringRequiredSource network: BSC or ETH.
toTokenstringRequiredDestination token symbol (e.g. CYBER, USDT).
toNetworkstringRequiredDestination network: BSC or ETH.
fromAmountstring | numberRequiredExact deposit amount within token min/max limits.
recipientAddressstringRequiredValid non-zero 42-char 0x EVM address (EIP-55 checksum enforced for mixed case; internal Vault, deposit, and token contract addresses are rejected).
refundAddressstringOptionalOptional external 0x EOA address (EIP-55 validated) for automatic late/underpaid refunds. Defaults to recipientAddress.
partnerKeystringOptionalYour partner API key (pk_live_...) for commission attribution. Also accepted as apiKey.
cURL Request
curl -X POST "https://bitfun.trade/api/swap" \
  -H "Content-Type: application/json" \
  -d '{
    "fromToken": "ETH",
    "fromNetwork": "ETH",
    "toToken": "CYBER",
    "toNetwork": "BSC",
    "fromAmount": "0.1",
    "recipientAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
    "partnerKey": "pk_live_your_partner_key"
  }'
GET/api/swap?orderId=SWAP-XXXXXXXX
120 req / min per IP

Polls the real-time status of an existing swap order, including deposit, payout, or refund transaction hashes once confirmed on-chain.

ParameterTypeRequiredDescription
orderIdstringRequiredOrder identifier returned by POST /api/swap (e.g. SWAP-A1B2C3D4).
cURL Request
curl -s "https://bitfun.trade/api/swap?orderId=SWAP-A1B2C3D4"
GET/api/orders/track?q=<query>
30 req / min per IP

Public order lookup by Order ID, 66-character 0x transaction hash (deposit, payout, RBF, or refund), or 42-character user wallet address (returns up to 10 most recent orders without exposing depositAddress).

ParameterTypeRequiredDescription
qstringRequiredOrder ID (SWAP-...), 0x TX hash, 0x user wallet address, or a full block explorer / order URL.
cURL Request
curl -s "https://bitfun.trade/api/orders/track?q=SWAP-A1B2C3D4"
GET/api/chart
90 req / min per IP

Returns OHLC candlestick data, area points, 24h price change, and recent trades for custom AMM or market tokens.

ParameterTypeRequiredDescription
symbolstringRequiredToken symbol (e.g. CYBER, ETH, BNB).
networkstringOptionalNetwork: BSC (default) or ETH.
rangestringOptionalTimeframe: 1M, 5M (default), 15M, 1H, or 1D.
cURL Request
curl -s "https://bitfun.trade/api/chart?symbol=CYBER&network=BSC&range=5M"

Order Status Lifecycle

Poll GET /api/swap every 5–10 seconds until a terminal status is reached.

StatusDescription
AWAITING_DEPOSITOrder created. Waiting for user funds on the unique deposit address (valid 20 min).
CONFIRMING_DEPOSITDeposit detected on-chain. Waiting for required block confirmations.
DEPOSIT_CONFIRMEDDeposit confirmed and verified. Queued for automated Vault payout.
PROCESSING_PAYOUTPayout transaction signed and broadcast to the destination chain.
COMPLETEDSwap settled on-chain. Partner commission is automatically credited.
AWAITING_VAULT_FUNDSDeposit confirmed; waiting up to 60 min for liquidity replenishment before moving to MANUAL_REVIEW.
UNDERPAIDReceived amount is lower than required. Eligible for refund.
REFUND_PENDINGLate or underpaid deposit queued for automated refund to refundAddress.
PROCESSING_REFUNDRefund transaction signed and broadcast on-chain. Waiting for block confirmation.
REFUNDEDFunds returned on-chain to the user refund address.
EXPIREDNo deposit received before quote expiration.
MANUAL_REVIEWFlagged by safety guards or liquidity timeout for manual operator verification or refund.

Security, Privacy & Rate Limits

Built-in safeguards protecting both your users and your partner account.

Public Key vs. Portal Secret

Your partnerKey is safe to expose in frontend widgets and URLs. Access to your earnings dashboard at /partner requires a separate private Portal Secret (never embed it in client-side code).

Price Impact & Quote Guards

Swaps exceeding 15% AMM price impact or the single-order USD limit are rejected automatically. Quotes lock for 20 minutes; late deposits are routed to safe auto-refund.

PARTNER PROGRAM

Ready to Integrate? Apply to Become a Partner

We partner with crypto media portals, wallets, Telegram bots, and DeFi aggregators. Once approved, you receive your custom partnerKey, private Partner Portal credentials, and automated revenue share on every completed swap.

Up to 10% custom fee share Real-time earnings dashboard Direct EVM payouts