API
Hydro
Mutations
User Inbound Data Plan

User Inbound Data Plan

More info on plans here.

This plan requires you to push inbound liquidity data for a particular node.

User Inbound Data Plans are currently only available via API.

Push Inbound Liquidity Data

Mutation

mutation PushExternalNodeData($input: ExternalNodeDataInput!) {
  pushExternalNodeData(input: $input)
}

Variables

{
  "input": {
    "pubkey": string,
    "value": number,
    "metric": "INBOUND_LIQUIDITY"
  }
}

Create Plan

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": {
    "external_node_data_plan": {
      "metric": "EXTERNAL_INBOUND_LIQUIDITY",
      "trigger_value": number,
      "frequency_minutes": number,
      "pubkey": string
    }
  }
}

Authenticated Endpoint: requires an API key

See it in the Apollo Explorer here (opens in a new tab).