Developers

Get all collateral asset info

List the collateral settings of every currency that can be used as collateral.

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_all_collateral_asset_info(...)
HTTPPOST https://market-data.testnet.grvt.io/full/v1/get_all_collateral_asset_info, or /lite/v1/get_all_collateral_asset_info for lite names (the SDKs' default)
WebSocketmethod v1/get_all_collateral_asset_info 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_all_collateral_asset_info (RPCGetAllCollateralAssetInfoV1)

Request

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

No fields.

Response

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

assetslite name aarray<ApiCollateralAssetInfo>required#
Collateral configuration for every collateral-eligible asset (CVR > 0)
  • currencylite name cstringrequired#
    The asset
  • collateral_value_ratiolite name cvstringrequired#
    CVR, expressed in percentage points. 0 = not usable as collateral.
  • collateral_deposit_caplite name cdstringrequired#
    CDC limit, native units. 0 = untracked / unlimited.
  • max_borrow_ratelite name mbstringrequired#
    MBR - per-asset ceiling on the annual borrow rate, expressed in percentage points; the tier borrow rate never exceeds this.
  • manual_repayment_fee_ratelite name mrstringrequired#
    Effective manual-repay/convert fee = max((1-CVR)/MRR, RFR), expressed in percentage points.
  • cdc_statuslite name csenum CDCStatusrequired#
    Collateral-deposit-cap utilization status: normal / reduceOnly / autoExchange.
    3 values
    NORMAL, REDUCE_ONLY, AUTO_EXCHANGE (details).
  • show_only_when_heldlite name soboolrequired#
    Show this currency only when the sub-account holds a balance of it
  • vault_idlite name vistring (uint64)required#
    The vault whose shares this currency is; 0 for an ordinary currency.

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_all_collateral_asset_info()
    print(resp)

Raw HTTP (set GRVT_DOMAIN, see Environments):

With full field names:

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

With lite field names:

curl -sS "https://market-data.testnet.grvt.io/lite/v1/get_all_collateral_asset_info" \
  -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