import _m0 from "protobufjs/minimal.js"; import { DeepPartial } from "../../helpers.js"; /** Defines the block rate limits for CLOB specific operations. */ export interface BlockRateLimitConfiguration { /** * How many short term order attempts (successful and failed) are allowed for * an account per N blocks. Note that the rate limits are applied * in an AND fashion such that an order placement must pass all rate limit * configurations. * * Specifying 0 values disables this rate limit. * Deprecated in favor of `max_short_term_orders_and_cancels_per_n_blocks` * for v5.x onwards. */ /** @deprecated */ maxShortTermOrdersPerNBlocks: MaxPerNBlocksRateLimit[]; /** * How many stateful order attempts (successful and failed) are allowed for * an account per N blocks. Note that the rate limits are applied * in an AND fashion such that an order placement must pass all rate limit * configurations. * * Specifying 0 values disables this rate limit. */ maxStatefulOrdersPerNBlocks: MaxPerNBlocksRateLimit[]; /** @deprecated */ maxShortTermOrderCancellationsPerNBlocks: MaxPerNBlocksRateLimit[]; maxShortTermOrdersAndCancelsPerNBlocks: MaxPerNBlocksRateLimit[]; } /** Defines the block rate limits for CLOB specific operations. */ export interface BlockRateLimitConfigurationSDKType { /** @deprecated */ max_short_term_orders_per_n_blocks: MaxPerNBlocksRateLimitSDKType[]; max_stateful_orders_per_n_blocks: MaxPerNBlocksRateLimitSDKType[]; /** @deprecated */ max_short_term_order_cancellations_per_n_blocks: MaxPerNBlocksRateLimitSDKType[]; max_short_term_orders_and_cancels_per_n_blocks: MaxPerNBlocksRateLimitSDKType[]; } /** Defines a rate limit over a specific number of blocks. */ export interface MaxPerNBlocksRateLimit { /** * How many blocks the rate limit is over. * Specifying 0 is invalid. */ numBlocks: number; /** * What the limit is for `num_blocks`. * Specifying 0 is invalid. */ limit: number; } /** Defines a rate limit over a specific number of blocks. */ export interface MaxPerNBlocksRateLimitSDKType { num_blocks: number; limit: number; } export declare const BlockRateLimitConfiguration: { encode(message: BlockRateLimitConfiguration, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BlockRateLimitConfiguration; fromPartial(object: DeepPartial): BlockRateLimitConfiguration; }; export declare const MaxPerNBlocksRateLimit: { encode(message: MaxPerNBlocksRateLimit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MaxPerNBlocksRateLimit; fromPartial(object: DeepPartial): MaxPerNBlocksRateLimit; };