Terabet Agent Api
    Terabet Agent Api
    • Getting Started
    • Enum
    • Filter Type
    • Realtime Odds
    • Work flows
    • Login
      POST
    • Register
      POST
    • Get game
      GET
    • Get sports
      GET
    • Get game score
      GET
    • Get odds
      POST
    • Get teaser points
      GET
    • Get bet history
      GET
    • Place single bet
      POST
    • Place combo bet
      POST
    • Place teaser bet
      POST
    • Get user info
      GET
    • Starting Kyc
      POST
    • Logout
      POST
    • Withdraw
      POST
    • Get deposit address
      POST
    • Get User’s Transactions
      GET
    • Get Trading Transactions
      GET
    • Get Trading Pairs
      GET
    • Trading token
      POST
    • Get User’s Wallets
      GET
    • Get Assets
      GET
    • Get Chains
      GET
    • Get casino games
      GET
    • Get casino platforms
      GET
    • Play poker
      POST
    • Play casino
      POST

      Trading token

      POST
      /v1/wallet/api/agent/swap/swap-token

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Body Params application/json

      Examples

      Responses

      🟢200Reponse 200
      application/json
      Body

      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/v1/wallet/api/agent/swap/swap-token' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "amount": 0.00,
        "coinPairId": 0
      }'
      Response Response Example
      {
          "id": 0,
          "amount": "string",
          "amountReceived": "string",
          "rate": "string",
          "fee": "string",
          "reversed": true,
          "status": "TransacitonStatusEnum",
          "coinPair": {
              "id": 0,
              "base": {
                  "id": 0,
                  "symbol": "string",
                  "name": "string",
                  "image": "string",
                  "enableDeposit": true,
                  "enableWithdrawal": true,
                  "minAmount": 0,
                  "maxAmount": 0
              },
              "quote": {
                  "id": 0,
                  "symbol": "string",
                  "name": "string",
                  "image": "string",
                  "enableDeposit": true,
                  "enableWithdrawal": true,
                  "minAmount": 0,
                  "maxAmount": 0
              },
              "fixedFee": 0,
              "isFixed": true,
              "percentageFee": 0,
              "isPercentage": true,
              "displayOrder": 0
          },
          "createdDate": "2025-07-10T07:25:00.555Z",
          "quoteUsdRate": 0
      }
      Modified at 2025-07-11 07:14:10
      Previous
      Get Trading Pairs
      Next
      Get User’s Wallets
      Built with