Developers

Get supported assets

List the currencies each wallet type (funding, spot, futures) supports.

On this page

URLs and generated code samples on this page: Testnet (chain ID 326). Other code on this page doesn't change: it stays on testnet until you switch it in your code. Tutorials, signing cases and live tools always use testnet.

SDKclient.get_supported_assets(...)
HTTPPOST https://market-data.testnet.grvt.io/full/v1/supported_assets, or /lite/v1/supported_assets for lite names (the SDKs' default)
WebSocketmethod v1/supported_assets on wss://market-data.testnet.grvt.io/ws/full, or /ws/lite for lite names
AuthNone (public)
RetriesRead: the SDKs retry retryable errors (rules)
Contract idinstrument.get_supported_assets (RPCGetSupportedAssetsV1)

Request

Body type EmptyRequest. Fields the server fills are left out.

No fields.

Response

Body type ApiGetSupportedAssetsResponse (the same object is the JSON-RPC result over WebSocket).

  • fundinglite name farray<SupportedAsset>required#
    Assets supported in funding wallets
    4 fields of SupportedAsset
    • asset_idlite name aiinteger (uint16)required#
      The currency ID of the asset
    • asset_codelite name acstringrequired#
      The readable currency code of the asset
    • balance_decimalslite name bdinteger (int8)required#
      The number of decimals used for balance representation
    • transfer_disabledlite name tdboolrequired#
      The asset cannot be transferred between wallets
  • spotlite name sarray<SupportedAsset>required#
    Assets supported in spot wallets Fields: same as funding[] above.
  • futureslite name f1array<FuturesWalletAssets>required#
    Assets supported in futures wallets, grouped by mode
    2 fields of FuturesWalletAssets
    • modelite name menum SubAccountModerequired#
      The sub-account mode
      1 value
      SINGLE_ASSET_MODE (details).
    • supported_assetslite name saarray<SupportedAsset>required#
      Assets supported under this futures mode Fields: same as funding[] above.

Errors

Errors come back as {"code", "message", "status"} (lite {"c", "m", "s"}) with the HTTP status. Codes this call can return (all error codes):

3 errors any call can return; none specific to this one
1002InternalServer500
Internal Server Error
1003InvalidRequest400
Request could not be processed due to malformed syntax
1006RateLimit429retryable
You have surpassed the allocated rate limit for your tier

Example

Example code
from grvt import Grvt

with Grvt(env="testnet") as client:
    resp = client.get_supported_assets()
    print(resp)

Raw HTTP (set GRVT_DOMAIN, see Environments):

With full field names:

curl -sS "https://market-data.testnet.grvt.io/full/v1/supported_assets" \
  -H "Content-Type: application/json" \
  --data '{}'

With lite field names:

curl -sS "https://market-data.testnet.grvt.io/lite/v1/supported_assets" \
  -H "Content-Type: application/json" \
  --data '{}'
Run on testnet
esc

↑ ↓ move↵ open⇧↵ open .mdTry an error code like 2002

Keyboard shortcuts

⌘ K
Search the docs
/
Search
l
Next code language (Python → TypeScript → Go → Rust → curl → WebSocket)
j / k
Next / previous page
t
Light / dark theme
?
This help
Esc
Close dialogs and drawers