Binance Connector JS
    Preparing search index...

    TransferApi - object-oriented interface TransferApi

    Implements

    Index

    Constructors

    Methods

    • Move funds from the user's bound CeDeFi MPC wallet to their CEX account (SPOT/FUNDING) via a contract escrow + credit flow. The maker wallet is resolved server-side by userId; the caller does not pass wallet or signature.

      Weight(IP): 200

      Security Type: PREDICTION_TRADE

      Notes:

      • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.
      • "Note on fromToken / toToken: typically the same symbol (e.g. both USDT). When they differ, the backend may attempt a swap, but cross-symbol conversion is not guaranteed for all pairs — prefer using the same symbol."

      Parameters

      Returns Promise<RestApiResponse<ApplyMmDepositResponse>>

      TransferApi

    • Withdraw funds from the user's CEX account (SPOT/FUNDING) to their bound CeDeFi MPC wallet address. Unlike v1/capital/withdraw/apply, the caller does NOT pass address; the backend resolves the user's bound CeDeFi MPC wallet address by userId and reuses the existing capital withdraw flow with that address as the target.

      Weight(IP): 200

      Security Type: PREDICTION_TRADE

      Notes:

      • Restricted to authorized market makers. Requests from unauthorized accounts are rejected — contact BD to request access.
      • walletType Validation:
      Value Behavior
      null Allowed — defaults to SPOT
      0 Allowed — source = SPOT
      1 Allowed — source = FUNDING
      Other (e.g. 99) Rejected — returns validation error
      • "Note on field naming: this endpoint uses walletType (INT 0/1) for the source CEX account, while Apply MM Deposit uses accountType (STRING SPOT/FUNDING) for the target. The difference is intentional: withdraw reuses the existing v1/capital/withdraw/apply flow, which inherits that flow's integer walletType field."

      Parameters

      Returns Promise<RestApiResponse<ApplyMmWithdrawResponse>>

      TransferApi