Get List of Liquidity Providers
Learn how to get the list of liquidity providers.
Liquidity Provider - Data Model
field | type | description |
---|---|---|
id | string | ID of the liquidity provider. Usually in the form of a UUID |
firstName | string | First name of the liquidity provider |
lastName | string | Last name of the liquidity provider |
email | string | Email of the liquidity provider |
API Calls
GET
/liquidity-providers
Gets list of liquidity providers.
Gets list of liquidity providers.
Endpoints
staging
: https://apis-alpha.dev.projectwhite.io
Parameters
None
Responses
http code | content-type | response |
---|---|---|
200 | application/json | Returns list of liquidity providers |
4xx | application/json | {"error": "string","message": "string" |
Try It Out
Get Token
export PAPE_TOKEN_ENDPOINT=https://id.dev.projectwhite.io/auth/realms/projectwhite/protocol/openid-connect/token;
export PAPE_API_ENDPOINT=https://apis-alpha.dev.projectwhite.io
export PAPE_USERNAME=cm.wallet.interstellar-demo.xaf;
export PAPE_PASSWORD=abc;
export PAPE_TOKEN=`curl -s --request POST \
--url "$PAPE_TOKEN_ENDPOINT" \
--data-urlencode grant_type=password \
--data-urlencode username=$PAPE_USERNAME \
--data-urlencode password=$PAPE_PASSWORD \
--data-urlencode 'client_id=projectwhite' \
| jq -r ".access_token"`
echo $PAPE_TOKEN
Get Liquidity Providers
curl -s --request GET \
--url "$PAPE_API_ENDPOINT/liquidity-providers" \
--header "accept: application/json" \
--header 'accept: */*' \
--header "Authorization: Bearer $PAPE_TOKEN" | jq .