Skip to main content

DatalakePolicy

One (exchange, trading mode) row of the lake universe policy.

type DatalakePolicy {
exchange: String!
tradingMode: String!
enabled: Boolean!
quoteAssets: [String!]!
includePairs: [String!]!
excludePairs: [String!]!
timeframes: [String!]!
depthDays: [DatalakePolicyDepth!]!
markFunding: Boolean!
entryQuoteVolume: Float!
exitQuoteVolume: Float!
reviewIntervalDays: Int!
supportedTimeframes: [String!]!
supportsMarkFunding: Boolean!
hasVolumeSource: Boolean!
activePairs: Int!
frozenPairs: Int!
version: Int!
updatedAt: Time!
}

Fields​

DatalakePolicy.exchange ● String! non-null scalar​

Resolved catalog id, e.g. binance.

DatalakePolicy.tradingMode ● String! non-null scalar​

spot or futures.

DatalakePolicy.enabled ● Boolean! non-null scalar​

DatalakePolicy.quoteAssets ● [String!]! non-null scalar​

The quote filter; empty means every listed market.

DatalakePolicy.includePairs ● [String!]! non-null scalar​

Always held while listed.

DatalakePolicy.excludePairs ● [String!]! non-null scalar​

Frozen unless a running bot trades them.

DatalakePolicy.timeframes ● [String!]! non-null scalar​

OHLCV timeframes held for every active pair.

DatalakePolicy.depthDays ● [DatalakePolicyDepth!]! non-null object​

History depth per held timeframe (the default where none is set).

DatalakePolicy.markFunding ● Boolean! non-null scalar​

Hold mark-price and funding-rate series (futures only).

DatalakePolicy.entryQuoteVolume ● Float! non-null scalar​

Entry floor: 7-day-average 24h quote volume, USD.

DatalakePolicy.exitQuoteVolume ● Float! non-null scalar​

Exit floor: 30 consecutive days below this 24h quote volume, USD.

DatalakePolicy.reviewIntervalDays ● Int! non-null scalar​

How often, in days, the volume rule is re-applied.

DatalakePolicy.supportedTimeframes ● [String!]! non-null scalar​

The timeframes the exchange serves; an edit may hold only these.

DatalakePolicy.supportsMarkFunding ● Boolean! non-null scalar​

Whether the lake fetches mark-price and funding series here.

DatalakePolicy.hasVolumeSource ● Boolean! non-null scalar​

Whether the exchange has a 24h volume feed (else it keeps its configured pairs).

DatalakePolicy.activePairs ● Int! non-null scalar​

Pairs the planner last recorded as active.

DatalakePolicy.frozenPairs ● Int! non-null scalar​

Pairs the planner last recorded as frozen.

DatalakePolicy.version ● Int! non-null scalar​

The row's edit version. A preview and a save send the version they were made against; a save against an older one is refused (DATALAKE_POLICY_STALE).

DatalakePolicy.updatedAt ● Time! non-null scalar​

Returned By​

datalakePolicies query ● updateDatalakePolicy mutation