Tokens
Path parameters
tokenAstring · enumRequiredExample:
The name/symbol of the first token (URL encoded).
CCPossible values: tokenBstring · enumRequiredExample:
The name/symbol of the second token (URL encoded).
USDCxPossible values: Responses
200
Token A information
application/json
Token information response.
400
AMM not found or token unknown
application/json
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"
}
}Path parameters
tokenAstring · enumRequiredExample:
The name/symbol of the first token (URL encoded).
CCPossible values: tokenBstring · enumRequiredExample:
The name/symbol of the second token (URL encoded).
USDCxPossible values: Responses
200
Token B information
application/json
Token information response.
400
AMM not found or token unknown
application/json
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"
}
}Path parameters
tokenAstring · enumRequiredExample:
The name/symbol of the first token (URL encoded).
CCPossible values: tokenBstring · enumRequiredExample:
The name/symbol of the second token (URL encoded).
USDCxPossible values: Responses
200
LP Token information
application/json
Token information response.
400
LP token not found
application/json
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?
