import * as superstruct from 'superstruct'; export { superstruct }; declare global { interface Window { __ORDERLY_VERSION__?: { [key: string]: string; }; } } declare const _default: "3.2.1"; declare enum AccountStatusEnum { EnableTradingWithoutConnected = -1, NotConnected = 0, Connected = 1, NotSignedIn = 2, SignedIn = 3, DisabledTrading = 4, EnableTrading = 5 } declare enum SystemStateEnum { Loading = 0, Error = 1, Ready = 10 } declare enum ExchangeStatusEnum { Normal = 0, Maintain = 1 } type NetworkId = "testnet" | "mainnet"; declare enum NetworkStatusEnum { unknown = 0, unsupported = 1, supported = 2 } declare const ARBITRUM_TESTNET_CHAINID = 421614; declare const SOLANA_TESTNET_CHAINID = 901901901; declare const SOLANA_MAINNET_CHAINID = 900900900; declare const STORY_TESTNET_CHAINID = 1516; declare const MONAD_TESTNET_CHAINID = 10143; declare const ABSTRACT_TESTNET_CHAINID = 11124; declare const ABSTRACT_MAINNET_CHAINID = 2741; declare const BSC_TESTNET_CHAINID = 97; declare const ADI_TESTNET_CHAINID = 99999; declare const XLAYER_TESTNET_CHAINID = 1952; declare const ABSTRACT_CHAIN_ID_MAP: Set; declare const ROBINHOOD_MAINNET_CHAINID = 4663; declare const ROBINHOOD_TESTNET_CHAINID = 46630; declare const ARBITRUM_TESTNET_CHAINID_HEX = "0x66EEE"; declare const MANTLE_TESTNET_CHAINID = 5003; declare const MANTLE_TESTNET_CHAINID_HEX = "0x138b"; declare const ARBITRUM_MAINNET_CHAINID = 42161; declare const ETHEREUM_MAINNET_CHAINID = 1; declare const ADI_MAINNET_CHAINID = 36900; declare const ARBITRUM_MAINNET_CHAINID_HEX = "0xa4b1"; /** @deprecated use useScreen hook instead */ declare const MEDIA_TABLET = "(max-width: 1023.98px)"; /** deposit buffer factor */ declare const DEPOSIT_FEE_RATE = 1.05; /** * A constant for the maximum value for a ``uint256``. */ declare const MaxUint256: bigint; declare const nativeTokenAddress = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"; declare const nativeETHAddress = "0x0000000000000000000000000000000000000000"; declare const isNativeTokenChecker: (address?: string) => boolean; declare const ArbitrumMainnetChainInfo: { name: string; public_rpc_url: string; chain_id: string; currency_symbol: string; currency_decimal: number; explorer_base_url: string; vault_address: string; }; declare const ArbitrumSepoliaChainInfo: { name: string; public_rpc_url: string; chain_id: string; currency_symbol: string; currency_decimal: number; explorer_base_url: string; vault_address: string; }; declare const AbstractTestnetChainInfo: { name: string; public_rpc_url: string; chain_id: string; currency_symbol: string; currency_decimal: number; explorer_base_url: string; vault_address: string; }; declare const AbstractTestnetTokenInfo: { chain_id: string; contract_address: string; decimals: number; withdrawal_fee: number; cross_chain_withdrawal_fee: number; display_name: string; }; declare const SolanaMainnetChainInfo: { chain_id: string; currency_decimal: number; currency_symbol: string; explorer_base_url: string; name: string; public_rpc_url: string; vault_address: string; }; declare const SolanaDevnetChainInfo: { chain_id: string; currency_decimal: number; currency_symbol: string; explorer_base_url: string; name: string; public_rpc_url: string; vault_address: string; }; declare const SolanaDevnetTokenInfo: { chain_id: string; contract_address: string; decimals: number; withdrawal_fee: number; cross_chain_withdrawal_fee: number; display_name: string; }; declare const ArbitrumSepoliaTokenInfo: { chain_id: string; contract_address: string; decimals: number; withdrawal_fee: number; cross_chain_withdrawal_fee: number; display_name: string; }; declare const TesnetTokenFallback: (testnetTokens: any) => { token: string; token_hash: string; decimals: number; minimum_withdraw_amount: number; chain_details: any; }[]; declare const EMPTY_LIST: ReadonlyArray; declare const EMPTY_OBJECT: Readonly>; declare const EMPTY_OPERATION: () => void; /** * Event name for broadcasting Order Entry estimated liquidation price changes * so that UI consumers (e.g. TradingView adapters) can update their visuals * without introducing tight coupling between widgets. */ declare const ORDER_ENTRY_EST_LIQ_PRICE_CHANGE: "orderEntry:estLiqPriceChange"; /** * Payload for the ORDER_ENTRY_EST_LIQ_PRICE_CHANGE event, carrying the symbol * and the latest estimated liquidation price derived from the order form. */ interface OrderEntryEstLiqPriceChangePayload { symbol: string; estLiqPrice: number | null; /** Whether the user is considered active when this payload is emitted (within the active window). */ isUserActive?: boolean; } /** * Supported types for placing an order */ declare enum OrderType { LIMIT = "LIMIT", MARKET = "MARKET", IOC = "IOC", FOK = "FOK", POST_ONLY = "POST_ONLY", ASK = "ASK", BID = "BID", STOP_LIMIT = "STOP_LIMIT", STOP_MARKET = "STOP_MARKET", /** * Only for POSITIONAL_TP_SL type algo order */ CLOSE_POSITION = "CLOSE_POSITION", /** * Scaled order */ SCALED = "SCALED", /** * trailing stop */ TRAILING_STOP = "TRAILING_STOP" } /** * Margin mode for the order */ declare enum MarginMode { ISOLATED = "ISOLATED", CROSS = "CROSS" } declare enum BBOOrderType { COUNTERPARTY1 = "counterparty1", COUNTERPARTY5 = "counterparty5", QUEUE1 = "queue1", QUEUE5 = "queue5" } declare enum OrderLevel { ONE = 0, TWO = 1, THREE = 2, FOUR = 3, FIVE = 4 } declare enum AlgoOrderRootType { TP_SL = "TP_SL", POSITIONAL_TP_SL = "POSITIONAL_TP_SL", STOP = "STOP", BRACKET = "BRACKET", TRAILING_STOP = "TRAILING_STOP" } declare enum TriggerPriceType { MARK_PRICE = "MARK_PRICE" } declare enum PositionType { FULL = "FULL", PARTIAL = "PARTIAL" } declare enum AlgoOrderType { TAKE_PROFIT = "TAKE_PROFIT", STOP_LOSS = "STOP_LOSS" } declare enum OrderSide { BUY = "BUY", SELL = "SELL" } declare enum PositionSide { LONG = "LONG", SHORT = "SHORT" } declare enum OrderStatus { /** @deprecated */ OPEN = "OPEN", NEW = "NEW", FILLED = "FILLED", PARTIAL_FILLED = "PARTIAL_FILLED", CANCELLED = "CANCELLED", REPLACED = "REPLACED", COMPLETED = "COMPLETED", INCOMPLETE = "INCOMPLETE", REJECTED = "REJECTED" } interface OrderExt { total: string; } interface BaseOrder { symbol: string; order_type: OrderType; margin_mode: MarginMode; order_type_ext?: OrderType; order_price: string; order_quantity: string; order_amount?: number; visible_quantity: number; side: OrderSide; reduce_only: boolean; slippage: number; order_tag: string; level: OrderLevel; post_only_adjust: boolean; /** custom order id, it is used to identify the order from ws */ client_order_id: string; } /** Scaled order fields */ interface ScaledOrder { /** user-defined price at the first order (index 0) */ start_price?: string; /** user-defined price at the last order (index total_orders - 1) */ end_price?: string; /** total number of orders */ total_orders?: string; /** quantity distribution type */ distribution_type?: DistributionType; /** the ratio of qty[end] / qty[start] */ skew?: string; } declare enum TrailingCallbackType { VALUE = "value", RATE = "rate" } interface RegularOrder extends BaseOrder, OrderExt, ScaledOrder, TrailingStopOrder { } interface AlgoOrder extends BaseOrder, OrderExt { quantity: string; type: OrderType; price: string; algo_type: AlgoOrderRootType; trigger_price_type: string; trigger_price: string; child_orders: AlgoOrderChildOrders[]; } interface BracketOrder extends AlgoOrder, OrderExt { /** * Computed take profit */ position_type?: PositionType; tp_pnl?: string; tp_offset?: string; tp_offset_percentage?: string; /** Offset from mark price (UI / internal; same semantics as offset but base = mark). */ tp_offset_from_mark?: string; tp_offset_percentage_from_mark?: string; tp_ROI?: string; tp_trigger_price?: string; tp_order_price?: string; tp_order_type?: OrderType; /** * Computed stop loss */ sl_pnl?: string; sl_offset?: string; sl_offset_percentage?: string; sl_offset_from_mark?: string; sl_offset_percentage_from_mark?: string; sl_ROI?: string; sl_trigger_price?: string; sl_order_price?: string; sl_order_type?: OrderType; } type OrderlyOrder = RegularOrder & AlgoOrder & BracketOrder; interface AlgoOrderChildOrders { symbol: string; algo_type: string; child_orders: ChildOrder[]; } interface ChildOrder { symbol: string; algo_type: AlgoOrderType; side: string; type: OrderType; trigger_price: string; price?: string; reduce_only: boolean; trigger_price_type?: string; } /** * Trailing Stop that allows users to set an activation price and a trailing amount (value / rate). * The order is only activated when the market reaches the activation price, * after which the trailing stop logic tracks the extreme price and triggers when the price retraces by the specified trailing amount. */ interface TrailingStopOrder { /** * activated price */ activated_price?: string; /** * i.e. the value = 100 */ callback_value?: string; /** * i.e. the value = 0.1 represent to 10% */ callback_rate?: string; } interface TrailingStopOrder { activated_price?: string; callback_value?: string; callback_rate?: string; } interface OrderEntity extends ScaledOrder, TrailingStopOrder { symbol: string; order_type: OrderType; margin_mode?: MarginMode; algo_type?: AlgoOrderRootType; order_type_ext?: OrderType; order_price?: string; order_quantity?: string; order_amount?: number; visible_quantity?: number; reduce_only?: boolean; side: OrderSide; slippage?: number; total?: string; isStopOrder?: boolean; trigger_price?: string; order_tag?: string; client_order_id?: string; level?: OrderLevel; } declare enum DistributionType { FLAT = "flat", ASCENDING = "ascending", DESCENDING = "descending", CUSTOM = "custom" } type Optional = Omit & Partial>; type RequireKeys = Required> & Partial>; interface BaseAlgoOrderEntity extends OrderEntity { algo_type: AlgoOrderRootType; child_orders: (Partial, "algo_type" | "type">> & { algo_type: AlgoOrderType; type: OrderType; child_orders?: BaseAlgoOrderEntity["child_orders"]; })[]; algo_order_id?: number; client_order_id?: string; order_tag?: string; price?: number | string; quantity: number | string; reduce_only?: boolean; side: OrderSide; symbol: string; trigger_price: string; trigger_price_type: TriggerPriceType; type: OrderType; visible_quantity?: number; is_activated?: boolean; tp_trigger_price?: string | number; sl_trigger_price?: string | number; tp_order_price?: string | number; tp_order_type?: OrderType; sl_order_price?: string | number; sl_order_type?: OrderType; /** Mark-based TP/SL offsets (UI + API); mirrors `BracketOrder` when used on TP/SL algo forms. */ tp_offset_from_mark?: string | number; tp_offset_percentage_from_mark?: string | number; sl_offset_from_mark?: string | number; sl_offset_percentage_from_mark?: string | number; position_type?: PositionType; } type AlgoOrderEntity = T extends AlgoOrderRootType.TP_SL ? Optional, "side" | "type" | "trigger_price" | "order_type"> : T extends AlgoOrderRootType.POSITIONAL_TP_SL ? Optional, "side" | "type" | "trigger_price" | "order_type" | "quantity" | "tp_order_price" | "tp_order_type" | "sl_order_price" | "sl_order_type" | "position_type"> : Omit, "child_orders" | "order_type">; type TPSLOrderEntry = Optional, "side" | "type" | "trigger_price">; type BracketOrderEntry = Optional, "side">; declare enum AnnouncementType { Listing = "LISTING", Maintenance = "MAINTENANCE", Delisting = "DELISTING", Campaign = "CAMPAIGN", Vote = "VOTE" } declare namespace API { /** * Symbol trading status returned by public symbol APIs. */ type SymbolTradingStatus = "POST_ONLY" | "ACTIVE" | "REDUCE_ONLY" | "DELISTING"; interface ConvertThreshold { ltv_threshold: number; negative_usdc_threshold: number; } interface Token { token: string; token_hash: string; decimals: number; minimum_withdraw_amount: number; base_weight: number; discount_factor: number; haircut: number; user_max_qty: number; is_collateral: boolean; on_chain_swap: boolean; chain_details: ChainDetail[]; } interface ChainDetail { chain_id: string; contract_address: string; decimals: number; exclusive_deposit_supported?: boolean; } interface MarketInfo { symbol: string; index_price: number; mark_price: number; sum_unitary_funding: number; est_funding_rate: number; last_funding_rate: number; next_funding_time: number; open_interest: string; "24h_open": number; "24h_close": number; "24h_high": number; "24h_low": number; /** * @deprecated * spelling mistake, use 24h_volume to instead, will be remove next version */ "24h_volumn": number; "24h_volume": number; "24h_amount": number; /** Permissionless listing: display name e.g. BTC, without broker_id suffix */ display_symbol_name?: string; /** Permissionless listing: broker id; null for non-community-listed symbols */ broker_id?: string | null; /** Pre-TGE listing flag; controlled explicitly by broker/listing metadata. */ is_pretge?: boolean; /** Trading status: POST_ONLY / ACTIVE / REDUCE_ONLY / DELISTING */ status?: SymbolTradingStatus; } interface MarketInfoExt extends MarketInfo { change: number; "24h_volume": number; } interface AnnouncementRow { announcement_id: number | string; message: string; i18n?: Record; url?: string | null; type?: AnnouncementType | null; updated_time?: number | null; coverImage?: string; } interface Announcement { last_updated_time?: number | null; rows?: AnnouncementRow[]; } /** * v1/public/info */ interface Symbol { symbol: string; quote_min: number; quote_max: number; quote_tick: number; base_min: number; base_max: number; base_tick: number; min_notional: number; price_range: number; price_scope: number; std_liquidation_fee: number; liquidator_fee: number; claim_insurance_fund_discount: number; funding_period: number; cap_funding: number; floor_funding: number; interest_rate: number; created_time: number; updated_time: number; imr_factor: number; base_mmr: number; base_imr: number; /** Permissionless listing: display name e.g. BTC, without broker_id suffix */ display_symbol_name?: string; /** Permissionless listing: broker id; null for non-community-listed symbols */ broker_id?: string | null; /** Pre-TGE listing flag; controlled explicitly by broker/listing metadata. */ is_pretge?: boolean; /** Trading status: POST_ONLY / ACTIVE / REDUCE_ONLY / DELISTING */ status?: SymbolTradingStatus; } interface TokenItem { token: string; token_hash: string; decimals: number; minimum_withdraw_amount: number; chain_details: ChainDetail[]; } interface ChainDetail { chain_id: string; contract_address: string; decimals: number; withdrawal_fee: number; } interface SymbolExt extends Symbol { base: string; base_dp: number; quote: string; quote_dp: number; type: string; name: string; } interface RwaSymbol { symbol: string; status: "open" | "close"; next_open: number; next_close: number; market_session?: "US_STOCK" | "US_STOCK_EXT" | "HK_STOCK" | "KR_STOCK" | "CN_STOCK" | "FX" | string; base: string; quote: string; type: string; name: string; } interface Order { symbol: string; status: string; side: string; order_id: number; algo_order_id?: number; user_id: number; price: number | null; type: string; quantity: number; amount: null; visible: number; executed: number; total_fee: number; fee_asset: string; client_order_id?: string; average_executed_price: number; total_executed_quantity: number; visible_quantity: number; created_time: number; updated_time: number; reduce_only: boolean; trigger_price?: number; order_tag?: string; margin_mode?: MarginMode; } interface OrderExt extends Order { mark_price: string; } interface AlgoOrder { algo_order_id: number; root_algo_order_id: number; parent_algo_order_id: number; parent_algo_type: AlgoOrderRootType; symbol: string; algo_type: string; child_orders: AlgoOrder[]; side: string; quantity: number; is_triggered: boolean; is_activated: boolean; trigger_price: number; trigger_price_type: string; type: OrderType; root_algo_status: string; algo_status: string; price?: number; total_executed_quantity: number; visible_quantity: number; total_fee: number; fee_asset: string; reduce_only: boolean; created_time: number; updated_time: number; order_tag?: string; client_order_id?: string; activated_price?: number; callback_value?: number; callback_rate?: number; extreme_price?: number; margin_mode?: MarginMode; } interface AlgoOrderExt extends AlgoOrder { mark_price: string; position?: Partial; tp_trigger_price?: number; sl_trigger_price?: number; } interface OrderResponse { rows: (Order | AlgoOrder)[]; meta: { total: number; current_page: number; records_per_page: number; }; } interface FundingRate { symbol: string; est_funding_rate: number; est_funding_rate_timestamp: number; last_funding_rate: number; last_funding_rate_timestamp: number; next_funding_time: number; sum_unitary_funding: number; } interface FundingPeriodData { rate: number; positive: number; negative: number; } interface FundingDetails { symbol: string; quote_min: number; quote_max: number; quote_tick: number; base_min: number; base_max: number; base_tick: number; min_notional: number; price_range: number; price_scope: number; std_liquidation_fee: number; liquidator_fee: number; claim_insurance_fund_discount: number; funding_period: number; cap_funding: number; floor_funding: number; interest_rate: number; created_time: number; updated_time: number; liquidation_tier: number; cap_ir: number; floor_ir: number; mark_index_price_deviation_floor: number; mark_index_price_deviation_cap: number; global_max_oi_cap: number; base_mmr: number; base_imr: number; imr_factor: number; deviation_factor: number; /** Permissionless listing: display name e.g. BTC, without broker_id suffix */ display_symbol_name?: string; /** Permissionless listing: broker id; null for non-community-listed symbols */ broker_id?: string | null; } interface FundingHistory { symbol: string; data_start_time: string; funding: { last: FundingPeriodData; "1d": FundingPeriodData; "3d": FundingPeriodData; "7d": FundingPeriodData; "14d": FundingPeriodData; "30d": FundingPeriodData; "90d": FundingPeriodData; }; } interface PositionInfo extends PositionAggregated { rows: Position[]; } interface PositionAggregated { margin_ratio: number; initial_margin_ratio: number; maintenance_margin_ratio: number; open_margin_ratio: number; current_margin_ratio_with_orders: number; initial_margin_ratio_with_orders: number; maintenance_margin_ratio_with_orders: number; total_collateral_value: number; free_collateral: number; total_pnl_24_h: number; /** * @deprecated use total_unreal_pnl instead */ unrealPnL: number; total_unreal_pnl: number; total_unreal_pnl_index?: number; /** * @deprecated use total_unsettled_pnl instead */ unsettledPnL: number; total_unsettled_pnl: number; notional: number; unrealPnlROI: number; unrealPnlROI_index?: number; total_unsettled_cross_pnl?: number; total_unsettled_isolated_pnl?: number; } interface Position { account_id?: string; symbol: string; position_qty: number; cost_position: number; last_sum_unitary_funding: number; /** * Accumulated funding fee since the position was opened, returned by /v1/positions */ accrued_funding_fee?: number; pending_long_qty: number; pending_short_qty: number; settle_price: number; average_open_price: number; unrealized_pnl: number; unrealized_pnl_index?: number; unrealized_pnl_ROI: number; unsettled_pnl: number; unsettled_pnl_ROI: number; unrealized_pnl_ROI_index?: number; mark_price: number; index_price?: number; est_liq_price: number | null; timestamp: number; /** * Maintenance margin ratio */ mmr: number; imr: number; IMR_withdraw_orders: number; MMR_with_orders: number; pnl_24_h: number; fee_24_h: number; fundingFee?: number; leverage: number; margin?: number; margin_mode?: MarginMode; } interface PositionExt extends Position { notional: number; mm: number; } interface PositionTPSLExt extends PositionExt { full_tp_sl?: { tp_trigger_price?: number; sl_trigger_price?: number; algo_order?: AlgoOrder; }; partial_tp_sl?: { tp_trigger_price?: number; sl_trigger_price?: number; order_num?: number; algo_order?: AlgoOrder; }; /** * related position tp/sl order */ algo_order?: AlgoOrder; } interface PositionsTPSLExt extends PositionAggregated { rows: PositionTPSLExt[]; } interface Trade { symbol: Symbol; side: OrderSide; ts: number; executed_price: number; executed_quantity: number; executed_timestamp: number; } interface Holding { token: string; holding: number; frozen: number; pending_short: number; isolated_margin: number; isolated_order_frozen: number; updated_time: number; } interface AccountInfo { account_id: string; email: string; account_mode: string; tier: string; futures_tier: string; maintenance_cancel_orders: boolean; taker_fee_rate: number; maker_fee_rate: number; rwa_taker_fee_rate?: number; rwa_maker_fee_rate?: number; max_leverage: number; futures_taker_fee_rate: number; futures_maker_fee_rate: number; imr_factor: { [key: string]: number; }; max_notional: { [key: string]: number; }; } interface Chain { dexs: string[]; network_infos: NetworkInfos; token_infos: TokenInfo[]; nativeToken?: TokenInfo; address?: string; symbol?: string; on_chain_swap?: boolean; } interface NetworkInfos { name: string; shortName: string; public_rpc_url: string; chain_id: number; currency_symbol: string; bridge_enable: boolean; mainnet: boolean; est_txn_mins: number | null; explorer_base_url: string; bridgeless?: boolean; withdrawal_fee?: number; minimum_withdraw_amount?: number; vault_address: string; currency_decimal?: number; cross_chain_router: string; depositor: string; } interface TokenInfo { address?: string; base_weight: number; decimals?: number; /** token decimals */ token_decimal?: number; discount_factor?: number | null; display_name?: string; haircut: number; is_collateral: boolean; symbol?: string; user_max_qty: number; precision?: number; minimum_withdraw_amount: number; swap_enable?: boolean; } interface Chain { token: string; token_hash: string; decimals: number; minimum_withdraw_amount: number; base_weight: number; discount_factor?: number | null; haircut: number; user_max_qty: number; is_collateral: boolean; chain_details: ChainDetail[]; } interface ChainDetail { chain_id: string; chain_name?: string; contract_address: string; decimals: number; withdrawal_fee: number; cross_chain_withdrawal_fee: number; display_name: string; } interface AssetHistory { meta: RecordsMeta; rows: AssetHistoryRow[]; } interface RecordsMeta { total: number; records_per_page: number; current_page: number; } interface AssetHistoryRow { id: string; tx_id: string; side: string; token: string; amount: number; fee: number; trans_status: string; created_time: number; updated_time: number; chain_id: string; } interface FundingFeeHistory { meta: RecordsMeta; rows: FundingFeeRow[]; } interface FundingFeeRow { symbol: string; margin_mode: MarginMode; funding_rate: number; mark_price: number; funding_fee: number; payment_type: string; status: string; created_time: number; updated_time: number; } interface StrategyVaultHistoryRow { vault_id: string; created_time: number; type: "withdrawal" | "deposit"; status: string; amount_change: number; token?: string; vaultName?: string; } interface StrategyVaultHistory { rows: StrategyVaultHistoryRow[]; meta: RecordsMeta; } interface TransferHistoryRow { amount: number; created_time: number; from_account_id: string; id: string; status: "CREATED" | "PENDING" | "COMPLETED" | "FAILED"; to_account_id: string; token: string; updated_time: number; chain_id: string; block_time: number; } interface TransferHistory { meta: RecordsMeta; rows: TransferHistoryRow[]; } interface TransferHistoryRow { amount: number; created_time: number; from_account_id: string; id: string; status: "CREATED" | "PENDING" | "COMPLETED" | "FAILED"; to_account_id: string; token: string; updated_time: number; } interface DailyRow { account_value: number; broker_id: string; date: string; perp_volume: number; pnl: number; snapshot_time?: number; } interface PositionHistory { position_id: number; liquidation_id?: number; position_status: string; type: string; symbol: string; avg_open_price: number; avg_close_price: number; max_position_qty: number; closed_position_qty: number; side: "LONG" | "SHORT"; trading_fee: number; accumulated_funding_fee: number; insurance_fund_fee: number; liquidator_fee: number; realized_pnl: number; open_timestamp: number; close_timestamp: number; last_update_time: number; leverage: number; margin_mode?: MarginMode | 1 | 0; } interface LiquidationPositionByPerp { abs_liquidation_fee: number; cost_position_transfer: number; liquidator_fee: number; position_qty: number; symbol: string; transfer_price: number; mark_price: number; } interface Liquidation { liquidation_id: number; timestamp: number; transfer_amount_to_insurance_fund: number; margin_ratio: number; account_mmr: number; collateral_value: number; position_notional: number; positions_by_perp: LiquidationPositionByPerp[]; } interface VaultBalance { chain_id: string; token: string; balance: number; pending_rebalance: number; } interface RestrictedAreas { invalid_web_country: string; invalid_web_city: string; } interface IpInfo { ip: string; city: string; region: string; checked: boolean; } interface LeverageInfo { symbol: string; leverage: number; margin_mode?: MarginMode; } namespace Referral { /** /v1/referral/multi_level/volume_prerequisite */ interface VolumePrerequisite { required_volume: number; current_volume: number; } /** /v1/referral/multi_level/max_rebate_rate */ interface MaxRebateRate { max_rebate_rate: number; bonus_max_rebate_rate?: number; base_rebate_rate?: number; } /** /v1/referral/multi_level/rebate_info */ interface MultiLevelRebateInfo { referral_code: string; max_rebate_rate: number; default_referee_rebate_rate: number; bonus_max_rebate_rate?: number; base_rebate_rate?: number; default_bonus_referee_rebate_rate?: number; direct_invites?: number; indirect_invites?: number; direct_volume?: number; indirect_volume?: number; direct_rebate?: number; indirect_rebate?: number; direct_bonus_rebate_rate?: number; direct_bonus_rebate?: number; } /** /v1/referral/multi_level/admin */ interface MultiLevelReferralConfig { enable: boolean; required_volume: number; max_rebate_rate: number; } /** /v1/referral/multi_level/statistics */ interface MultiLevelStatistics { direct_invites: number; indirect_invites: number; direct_traded: number; indirect_traded: number; direct_volume: number; indirect_volume: number; direct_rebate: number; indirect_rebate: number; direct_bonus_rebate?: number; } } } declare namespace WSMessage { interface Ticker { symbol: string; open: number; close: number; high: number; low: number; volume: number; amount: number; count: number; change: number; open_interest?: number; index_price?: number; } interface MarkPrice { symbol: string; price: number; } interface Position { symbol: string; marginMode?: MarginMode; marginToken?: string; positionQty: number; costPosition: number; lastSumUnitaryFunding: number; accruedFundingFee?: number; sumUnitaryFundingVersion: number; pendingLongQty: number; pendingShortQty: number; settlePrice: number; averageOpenPrice: number; unsettledPnl: number; pnl24H: number; fee24H: number; markPrice: number; estLiqPrice: number; version: number; /** * Timestamp when the position was opened (13-digit ms) */ timestamp?: number; /** * Timestamp when the position was last updated (13-digit ms) */ updatedTime?: number; imr: number; imrwithOrders: number; mmrwithOrders: number; mmr: number; leverage?: number; margin?: number; } interface VaultBalance { chain_id: string; token: string; balance: number; pending_rebalance: number; } interface Order { symbol: string; clientOrderId: string; orderId: number; type: string; side: string; quantity: number; price: number; tradeId: number; executedPrice: number; executedQuantity: number; fee: number; feeAsset: string; totalExecutedQuantity: number; avgPrice: number; status: string; reason: string; totalFee: number; visible: number; /** * update time */ timestamp: number; reduceOnly: boolean; maker: boolean; marginMode?: MarginMode; } interface Holding { holding: number; frozen: number; interest: number; pendingShortQty: number; pendingExposure: number; pendingLongQty: number; pendingLongExposure: number; version: number; staked: number; unbonding: number; vault: number; fee24H: number; markPrice: number; } interface AlgoOrder { symbol: string; rootAlgoOrderId: number; parentAlgoOrderId: number; algoOrderId: number; status: string; algoType: string; side: string; quantity: number; triggerStatus: string; price: number; type: string; triggerTradePrice: number; triggerTime: number; tradeId: number; executedPrice: number; executedQuantity: number; fee: number; feeAsset: string; totalExecutedQuantity: number; averageExecutedPrice: number; totalFee: number; timestamp: number; visibleQuantity: number; reduceOnly: boolean; triggered: boolean; maker: boolean; rootAlgoStatus: string; algoStatus: string; marginMode?: MarginMode; } interface Announcement { announcement_id: string; message: string; i18n: Record; url?: string | null; type: AnnouncementType | null; updated_time: number; } } type RouteOption = { href: string; name: string; scope?: string; target?: string; }; type RouterAdapter = { onRouteChange: (option: RouteOption) => void; currentPath?: string; }; declare enum WithdrawStatus { NotSupported = "NotSupported", NotConnected = "NotConnected", Unsettle = "Unsettle", InsufficientBalance = "InsufficientBalance", Normal = "Normal" } interface Chain { id: number; chainNameShort: string; chainLogo: string; chainInfo: ChainInfo; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; requestRpc: string; } interface ChainInfo { chainId: string; chainName: string; nativeCurrency: NativeCurrency; rpcUrls: string[]; blockExplorerUrls: string[]; } interface NativeCurrency { name: string; symbol: string; decimals: number; fix: number; } declare const Ethereum: { chainNameShort: string; id: number; chainLogo: string; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; requestRpc: string; }; declare const Avalanche: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; chainLogo: string; requestRpc: string; }; declare const Fuji: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; chainLogo: string; requestRpc: string; }; declare const BNB: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const Fantom: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; chainLogo: string; requestRpc: string; }; declare const Polygon: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const Arbitrum: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const Optimism: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const zkSyncEra: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const PolygonzkEVM: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const Linea: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const Base: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const Mantle: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const ArbitrumGoerli: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const ArbitrumSepolia: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const OptimismGoerli: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const OptimismSepolia: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const BaseSepolia: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const MantleSepolia: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const PolygonAmoy: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const Sei: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const StoryTestnet: { name: string; public_rpc_url: string; chain_id: number; currency_symbol: string; explorer_base_url: string; vault_address: string; }; declare const StoryOdysseyTestnet: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: never[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }; declare const chainsInfoMap: Map; declare const SolanaDevnet: typeof Arbitrum; declare const TestnetChains: ({ network_infos: { name: string; shortName: string; public_rpc_url: string; chain_id: number; currency_symbol: string; bridge_enable: boolean; mainnet: boolean; explorer_base_url: string; est_txn_mins: null; vault_address?: undefined; }; token_infos: { symbol: string; address: string; decimals: number; }[]; } | { network_infos: { name: string; public_rpc_url: string; chain_id: number; currency_symbol: string; explorer_base_url: string; vault_address: string; shortName?: undefined; bridge_enable?: undefined; mainnet?: undefined; est_txn_mins?: undefined; }; token_infos: { symbol: string; address: string; decimals: number; }[]; })[]; declare const defaultMainnetChains: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }[]; declare const defaultTestnetChains: { id: number; chainInfo: { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; fix: number; }; rpcUrls: string[]; blockExplorerUrls: string[]; }; minGasBalance: number; minCrossGasBalance: number; maxPrepayCrossGas: number; blockExplorerName: string; chainName: string; chainNameShort: string; requestRpc: string; chainLogo: string; }[]; declare enum ChainNamespace { evm = "EVM", solana = "SOL" } declare const AbstractChains: Set; declare const SolanaChains: Set; declare enum TrackerEventName { /** virtual event (not send this event name to tracker) */ trackIdentifyUserId = "track_identify_user_id", trackIdentify = "track_identify", trackCustomEvent = "track_custom_event", /** real event name (send this event name to tracker) */ withdrawSuccess = "withdraw_request_success", withdrawFailed = "withdraw_request_failure", depositSuccess = "deposit_request_success", depositFailed = "deposit_request_failure", signinSuccess = "sign_message_success", placeOrderSuccess = "place_order_success", walletConnect = "connect_wallet_success", clickLinkDeviceButton = "click_link_device_button", signLinkDeviceMessageSuccess = "sign_link_device_message_success", linkDeviceModalClickConfirm = "link_device_modal_click_confirm", socialLoginSuccess = "social_login_success", clickSwitchNetwork = "click_switch_network", clickSwitchWallet = "click_switch_wallet", switchNetworkSuccess = "switch_network_success", clickExportPrivateKey = "click_export_private_key", switchLanguage = "switch_language", leaderboardCampaignClickTradeNow = "leaderboard_campaign_click_trade_now", leaderboardCampaignClickLearnMore = "leaderboard_campaign_click_learn_more", vaultDepositSuccess = "vault_deposit_success", vaultDepositFailed = "vault_deposit_failed", vaultWithdrawSuccess = "vault_withdraw_success", vaultWithdrawFailed = "vault_withdraw_failed", clickBBOButton = "click_bbo_button", confirmCloseAllPositions = "confirm_close_all_positions" } type CurrentChain = { id: number; info: API.Chain; }; type WalletChainChangeState = { isTestnet: boolean; isWalletConnected: boolean; isWalletConnectionPending: boolean; }; declare const WALLET_CHAIN_CHANGE_PENDING: "wallet:chain-change-pending"; type WalletChainChangePendingResult = { readonly status: typeof WALLET_CHAIN_CHANGE_PENDING; }; type WalletChainChangeResult = boolean | WalletChainChangePendingResult | undefined; declare const WALLET_CHAIN_CHANGE_PENDING_RESULT: WalletChainChangePendingResult; declare function isWalletChainChangePendingResult(value: unknown): value is WalletChainChangePendingResult; declare enum WS_WalletStatusEnum { NO = "NO", FAILED = "FAILED", PENDING = "PENDING", PROCESSING = "PROCESSING", COMPLETED = "COMPLETED" } declare const LedgerWalletKey = "orderly:ledger-wallet"; declare const LedgerWalletManualOverrideKey = "orderly:ledger-wallet-manual-override"; declare const ConnectorKey = "orderly:connectorKey"; declare const ChainKey = "order:chain"; declare const LinkDeviceKey = "orderly_link_device"; declare const TradingviewFullscreenKey = "orderly:tradingview-fullscreen"; declare const OrderEntrySortKeys = "orderly:order_entry_sort_keys"; declare class ApiError extends Error { private readonly code; constructor(message: string, code: number); } declare class SDKError extends Error { constructor(message: string); } declare const definedTypes: { readonly EIP712Domain: readonly [{ readonly name: "name"; readonly type: "string"; }, { readonly name: "version"; readonly type: "string"; }, { readonly name: "chainId"; readonly type: "uint256"; }, { readonly name: "verifyingContract"; readonly type: "address"; }]; readonly Registration: readonly [{ readonly name: "brokerId"; readonly type: "string"; }, { readonly name: "chainId"; readonly type: "uint256"; }, { readonly name: "timestamp"; readonly type: "uint64"; }, { readonly name: "registrationNonce"; readonly type: "uint256"; }]; readonly Withdraw: readonly [{ readonly name: "brokerId"; readonly type: "string"; }, { readonly name: "chainId"; readonly type: "uint256"; }, { readonly name: "receiver"; readonly type: "address"; }, { readonly name: "token"; readonly type: "string"; }, { readonly name: "amount"; readonly type: "uint256"; }, { readonly name: "withdrawNonce"; readonly type: "uint64"; }, { readonly name: "timestamp"; readonly type: "uint64"; }]; readonly AddOrderlyKey: readonly [{ readonly name: "brokerId"; readonly type: "string"; }, { readonly name: "chainId"; readonly type: "uint256"; }, { readonly name: "orderlyKey"; readonly type: "string"; }, { readonly name: "scope"; readonly type: "string"; }, { readonly name: "timestamp"; readonly type: "uint64"; }, { readonly name: "expiration"; readonly type: "uint64"; }]; readonly SettlePnl: readonly [{ readonly name: "brokerId"; readonly type: "string"; }, { readonly name: "chainId"; readonly type: "uint256"; }, { readonly name: "settleNonce"; readonly type: "uint64"; }, { readonly name: "timestamp"; readonly type: "uint64"; }]; readonly DexRequest: readonly [{ readonly name: "payloadType"; readonly type: "uint8"; }, { readonly name: "nonce"; readonly type: "uint256"; }, { readonly name: "receiver"; readonly type: "address"; }, { readonly name: "amount"; readonly type: "uint256"; }, { readonly name: "vaultId"; readonly type: "bytes32"; }, { readonly name: "token"; readonly type: "string"; }, { readonly name: "dexBrokerId"; readonly type: "string"; }]; readonly InternalTransfer: readonly [{ readonly name: "receiver"; readonly type: "bytes32"; }, { readonly name: "token"; readonly type: "string"; }, { readonly name: "amount"; readonly type: "uint256"; }, { readonly name: "transferNonce"; readonly type: "uint64"; }]; }; declare enum AssetHistoryStatusEnum { /** @deprecated, this status is not used */ NEW = "NEW", PENDING = "PENDING", CONFIRM = "CONFIRM", PROCESSING = "PROCESSING", COMPLETED = "COMPLETED", FAILED = "FAILED", PENDING_REBALANCE = "PENDING_REBALANCE" } declare enum AssetHistorySideEnum { DEPOSIT = "DEPOSIT", WITHDRAW = "WITHDRAW" } declare const DEFAUL_ORDERLY_KEY_SCOPE = "read,trading"; export { ABSTRACT_CHAIN_ID_MAP, ABSTRACT_MAINNET_CHAINID, ABSTRACT_TESTNET_CHAINID, ADI_MAINNET_CHAINID, ADI_TESTNET_CHAINID, API, ARBITRUM_MAINNET_CHAINID, ARBITRUM_MAINNET_CHAINID_HEX, ARBITRUM_TESTNET_CHAINID, ARBITRUM_TESTNET_CHAINID_HEX, AbstractChains, AbstractTestnetChainInfo, AbstractTestnetTokenInfo, AccountStatusEnum, type AlgoOrder, type AlgoOrderChildOrders, type AlgoOrderEntity, AlgoOrderRootType, AlgoOrderType, AnnouncementType, ApiError, Arbitrum, ArbitrumGoerli, ArbitrumMainnetChainInfo, ArbitrumSepolia, ArbitrumSepoliaChainInfo, ArbitrumSepoliaTokenInfo, AssetHistorySideEnum, AssetHistoryStatusEnum, Avalanche, BBOOrderType, BNB, BSC_TESTNET_CHAINID, Base, type BaseAlgoOrderEntity, type BaseOrder, BaseSepolia, type BracketOrder, type BracketOrderEntry, type Chain, type Chain as ChainConfig, type ChainInfo, ChainKey, ChainNamespace, type ChildOrder, ConnectorKey, type CurrentChain, DEFAUL_ORDERLY_KEY_SCOPE, DEPOSIT_FEE_RATE, DistributionType, EMPTY_LIST, EMPTY_OBJECT, EMPTY_OPERATION, ETHEREUM_MAINNET_CHAINID, Ethereum, ExchangeStatusEnum, Fantom, Fuji, LedgerWalletKey, LedgerWalletManualOverrideKey, Linea, LinkDeviceKey, MANTLE_TESTNET_CHAINID, MANTLE_TESTNET_CHAINID_HEX, MEDIA_TABLET, MONAD_TESTNET_CHAINID, Mantle, MantleSepolia, MarginMode, MaxUint256, type NativeCurrency, type NetworkId, NetworkStatusEnum, ORDER_ENTRY_EST_LIQ_PRICE_CHANGE, Optimism, OptimismGoerli, OptimismSepolia, type Optional, type OrderEntity, type OrderEntryEstLiqPriceChangePayload, OrderEntrySortKeys, OrderLevel, OrderSide, OrderStatus, OrderType, type OrderlyOrder, Polygon, PolygonAmoy, PolygonzkEVM, PositionSide, PositionType, ROBINHOOD_MAINNET_CHAINID, ROBINHOOD_TESTNET_CHAINID, type RegularOrder, type RequireKeys, type RouteOption, type RouterAdapter, SDKError, SOLANA_MAINNET_CHAINID, SOLANA_TESTNET_CHAINID, STORY_TESTNET_CHAINID, Sei, SolanaChains, SolanaDevnet, SolanaDevnetChainInfo, SolanaDevnetTokenInfo, SolanaMainnetChainInfo, StoryOdysseyTestnet, StoryTestnet, SystemStateEnum, type TPSLOrderEntry, TesnetTokenFallback, TestnetChains, TrackerEventName, TradingviewFullscreenKey, TrailingCallbackType, TriggerPriceType, WALLET_CHAIN_CHANGE_PENDING, WALLET_CHAIN_CHANGE_PENDING_RESULT, WSMessage, WS_WalletStatusEnum, type WalletChainChangePendingResult, type WalletChainChangeResult, type WalletChainChangeState, WithdrawStatus, XLAYER_TESTNET_CHAINID, chainsInfoMap, defaultMainnetChains, defaultTestnetChains, definedTypes, isNativeTokenChecker, isWalletChainChangePendingResult, nativeETHAddress, nativeTokenAddress, _default as version, zkSyncEra };