Skip to main content
GET
/
wallets
/
tokens
/
listing_requests
import cobo_waas2
from cobo_waas2.models.list_token_listing_requests200_response import (
    ListTokenListingRequests200Response,
)
from cobo_waas2.models.token_listing_request_status import TokenListingRequestStatus
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.WalletsApi(api_client)
    limit = 10
    before = "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1"
    after = "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
    status = cobo_waas2.TokenListingRequestStatus()

    try:
        # List token listing requests
        api_response = api_instance.list_token_listing_requests(
            limit=limit, before=before, after=after, status=status
        )
        print("The response of WalletsApi->list_token_listing_requests:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling WalletsApi->list_token_listing_requests: %s\n" % e
        )

{
  "data": [
    {
      "request_id": "123e4567e89b12d3a456426614174000",
      "chain_id": "ETH",
      "contract_address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
      "wallet_type": "Custodial",
      "wallet_subtype": "Asset",
      "token": {
        "token_id": "ETH_USDT",
        "chain_id": "ETH",
        "asset_id": "USDT",
        "symbol": "USDT",
        "name": "Tether USDT",
        "decimal": 18,
        "icon_url": "https://d.cobo.com/public/logos/USDT.png",
        "token_address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "fee_token_id": "ETH",
        "can_deposit": true,
        "can_withdraw": true,
        "dust_threshold": "0.00000546",
        "custodial_minimum_deposit_threshold": "0.0001",
        "asset_model_type": "Account"
      },
      "status": "Submitted",
      "source": "API",
      "feedback": "Token has been added to the system",
      "created_timestamp": 1625097600000,
      "updated_timestamp": 1625184000000
    }
  ],
  "pagination": {
    "before": "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
    "after": "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk",
    "total_count": 10000
  }
}
import cobo_waas2
from cobo_waas2.models.list_token_listing_requests200_response import (
    ListTokenListingRequests200Response,
)
from cobo_waas2.models.token_listing_request_status import TokenListingRequestStatus
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.WalletsApi(api_client)
    limit = 10
    before = "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1"
    after = "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
    status = cobo_waas2.TokenListingRequestStatus()

    try:
        # List token listing requests
        api_response = api_instance.list_token_listing_requests(
            limit=limit, before=before, after=after, status=status
        )
        print("The response of WalletsApi->list_token_listing_requests:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling WalletsApi->list_token_listing_requests: %s\n" % e
        )

Authorizations

BIZ-API-KEY
string
header
required

The API key. For more details, refer to API key.

In the API playground, enter your API secret, and your API key will be accordingly calculated.

Query Parameters

limit
integer
default:10

The maximum number of objects to return. For most operations, the value range is [1, 50].

before
string

A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.

after
string

A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.

status
enum<string>

The current status of the token listing request.

Available options:
Submitted,
Succeeded,
Failed
Example:

"Submitted"

Response

List of token listing requests

data
object[]
pagination
object

The pagination information of the returned data.