For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tokens

Token and instrument information.

Get Token A information

get
/tokenA/{tokenA}/{tokenB}

Returns token information for the first token in the liquidity pool. Note that this is not always the first token in the pool name.

Path parameters
tokenAstring · enumRequired

The name/symbol of the first token (URL encoded).

Example: CCPossible values:
tokenBstring · enumRequired

The name/symbol of the second token (URL encoded).

Example: USDCxPossible values:
Responses
200

Token A information

application/json

Token information response.

get/tokenA/{tokenA}/{tokenB}
GET /v1/tokenA/{tokenA}/{tokenB} HTTP/1.1
Host: api.tradecraft.fi
Accept: */*
{
  "instrument_id": {
    "admin": "party::admin123",
    "id": "Amulet"
  },
  "instrument_info": {
    "instrument_id": {
      "admin": "party::admin123",
      "id": "Amulet"
    },
    "registry_url": "https://registry.example.com"
  }
}

Get Token B information

get
/tokenB/{tokenA}/{tokenB}

Returns token information for the second token in the pool. Note that this is not always the second token in the pool name.

Path parameters
tokenAstring · enumRequired

The name/symbol of the first token (URL encoded).

Example: CCPossible values:
tokenBstring · enumRequired

The name/symbol of the second token (URL encoded).

Example: USDCxPossible values:
Responses
200

Token B information

application/json

Token information response.

get/tokenB/{tokenA}/{tokenB}
GET /v1/tokenB/{tokenA}/{tokenB} HTTP/1.1
Host: api.tradecraft.fi
Accept: */*
{
  "instrument_id": {
    "admin": "party::admin123",
    "id": "Amulet"
  },
  "instrument_info": {
    "instrument_id": {
      "admin": "party::admin123",
      "id": "Amulet"
    },
    "registry_url": "https://registry.example.com"
  }
}

Get LP Token information

get
/lpToken/{tokenA}/{tokenB}

Returns instrument information for the liquidity provider token of the pool.

Path parameters
tokenAstring · enumRequired

The name/symbol of the first token (URL encoded).

Example: CCPossible values:
tokenBstring · enumRequired

The name/symbol of the second token (URL encoded).

Example: USDCxPossible values:
Responses
200

LP Token information

application/json

Token information response.

get/lpToken/{tokenA}/{tokenB}
GET /v1/lpToken/{tokenA}/{tokenB} HTTP/1.1
Host: api.tradecraft.fi
Accept: */*
{
  "instrument_id": {
    "admin": "party::admin123",
    "id": "Amulet"
  },
  "instrument_info": {
    "instrument_id": {
      "admin": "party::admin123",
      "id": "Amulet"
    },
    "registry_url": "https://registry.example.com"
  }
}

Last updated

Was this helpful?