Skip to main content
GET
/
fee_station
/
fiat_transactions
import cobo_waas2
from cobo_waas2.models.fee_station_fiat_transaction_type import (
    FeeStationFiatTransactionType,
)
from cobo_waas2.models.list_fee_station_fiat_transactions200_response import (
    ListFeeStationFiatTransactions200Response,
)
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.FeeStationApi(api_client)
    transaction_ids = (
        "f47ac10b-58cc-4372-a567-0e02b2c3d479,557918d2-632a-4fe1-932f-315711f05fe3"
    )
    transaction_type = cobo_waas2.FeeStationFiatTransactionType()
    min_created_timestamp = 1635744000000
    max_created_timestamp = 1635744000000
    before = "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1"
    after = "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
    limit = 10

    try:
        # List Fee Station fiat transactions
        api_response = api_instance.list_fee_station_fiat_transactions(
            transaction_ids=transaction_ids,
            transaction_type=transaction_type,
            min_created_timestamp=min_created_timestamp,
            max_created_timestamp=max_created_timestamp,
            before=before,
            after=after,
            limit=limit,
        )
        print("The response of FeeStationApi->list_fee_station_fiat_transactions:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling FeeStationApi->list_fee_station_fiat_transactions: %s\n"
            % e
        )

{
  "data": [
    {
      "transaction_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "transaction_type": "deposit",
      "amount": "100.00",
      "fiat_currency": "USD",
      "status": "Succeeded",
      "main_transaction_id": "b0530b27-104f-4338-87de-de01500326ea",
      "cobo_category": [
        "GasFeeSponsor"
      ],
      "created_timestamp": 1635744000000,
      "modified_timestamp": 1635744000000
    }
  ],
  "pagination": {
    "before": "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
    "after": "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk",
    "total_count": 10000
  }
}
Try Cobo WaaS Skill in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀
import cobo_waas2
from cobo_waas2.models.fee_station_fiat_transaction_type import (
    FeeStationFiatTransactionType,
)
from cobo_waas2.models.list_fee_station_fiat_transactions200_response import (
    ListFeeStationFiatTransactions200Response,
)
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.FeeStationApi(api_client)
    transaction_ids = (
        "f47ac10b-58cc-4372-a567-0e02b2c3d479,557918d2-632a-4fe1-932f-315711f05fe3"
    )
    transaction_type = cobo_waas2.FeeStationFiatTransactionType()
    min_created_timestamp = 1635744000000
    max_created_timestamp = 1635744000000
    before = "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1"
    after = "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
    limit = 10

    try:
        # List Fee Station fiat transactions
        api_response = api_instance.list_fee_station_fiat_transactions(
            transaction_ids=transaction_ids,
            transaction_type=transaction_type,
            min_created_timestamp=min_created_timestamp,
            max_created_timestamp=max_created_timestamp,
            before=before,
            after=after,
            limit=limit,
        )
        print("The response of FeeStationApi->list_fee_station_fiat_transactions:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling FeeStationApi->list_fee_station_fiat_transactions: %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

transaction_ids
string

A list of transaction IDs, separated by comma.

transaction_type
enum<string>

The type of the fiat transaction. Possible values include:

  • deposit: A deposit transaction.
  • transfer: A transfer transaction.
Available options:
deposit,
transfer
Example:

"deposit"

min_created_timestamp
integer<int64>

The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time.

If you specify min_created_timestamp without specifying max_created_timestamp, max_created_timestamp is automatically set to min_created_timestamp + 90 days. If you specify both, the time range cannot exceed 90 days.

If not provided, the default value is 90 days before the current time. This default value is subject to change.

max_created_timestamp
integer<int64>

The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time.

If you specify max_created_timestamp without specifying min_created_timestamp, min_created_timestamp is automatically set to max_created_timestamp - 90 days. If you specify both, the time range cannot exceed 90 days.

If not provided, the default value is the current time. This default value is subject to change.

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.

limit
integer<int32>
default:10

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

Response

The information about the fiat transactions.

data
object[]
pagination
object

The pagination information of the returned data.