Get List of Liquidity Providers

Learn how to get the list of liquidity providers.

Liquidity Provider - Data Model

fieldtypedescription
idstringID of the liquidity provider.
Usually in the form of a UUID
firstNamestringFirst name of the liquidity provider
lastNamestringLast name of the liquidity provider
emailstringEmail of the liquidity provider

API Calls

Endpoints

staging: https://apis-alpha.dev.projectwhite.io

Parameters

None

Responses
http codecontent-typeresponse
200application/jsonReturns list of liquidity providers
4xxapplication/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 .