Capacity and Inbound Liquidity Plans
More info on plans here.
The pubkey field in the mutation input is optional. If included, the setup will be based on that specific node. If omitted, the setup defaults to the pubkey associated with the user's account.
Mutation
mutation CreateLiquidityPlan($input: CreateLiquidityPlanInput) {
createLiquidityPlan(input: $input) {
id
metric
pubkey
is_enabled
is_deleted
value_check_plan {
frequency_minutes
operator
trigger_value
}
}
}
Variables
Hydro utilizes the
frequency_minutes
field to determine the frequency at which it checks whether your Plan should be activated. The minimum checking interval is set to hourly, equivalent to 60 minutes.
{
"input": {
"value_check_plan": {
"frequency_minutes": number,
"metric": "CAPACITY" || "INBOUND_LIQUIDITY",
"pubkey": string || null,
"trigger_value": number
}
}
}
Authenticated Endpoint: requires an API key
See it in the Apollo Explorer here (opens in a new tab).