dex

Get Active Amount

Retrieves the active making amount of a specific token held by a maker. This endpoint returns the maker’s address, the token’s contract address, and the current active amount available for order execution. This active amount reflects the portion of the maker’s assets that are deployed in liquidity provision or trading on the decentralized exchange, providing crucial insight into market depth and the maker’s trading activity.

💡 Compute Unit Value: 140 (Fixed)

get/defi/v1/dex/getactiveamount

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/dex/getactiveamount
  • Auth
    API key in header X-API-Key

Query parameters

dexId'2200' | '2201' | '2202' | '2203' | '2204' | '2205' | '2206'

The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.

Example:2200
addressstring required

The public address of the maker (user) whose active amount is being queried.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
tokenAddressstring required

The address of the token for which the active amount is to be retrieved.

Example:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "address": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
    "tokenAddress": "0x853d955acef822db058eb8505911ed77f175b99e",
    "activeMakingAmount": "400000000000000"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.