MCPcopy Create free account

hub / github.com/discountry/ritmex-bot / functions

Functions3,514 in github.com/discountry/ritmex-bot

↓ 5 callersFunctionbuildBpsTargets
(config: MakerPointsBandConfig)
src/strategy/maker-points-logic.ts:7
↓ 5 callersMethodbuildSpotSnapshot
()
src/exchanges/binance/gateway.ts:1447
↓ 5 callersFunctionbytesToHex
(bytes: Uint8Array, withPrefix = false)
src/exchanges/lighter/bytes.ts:23
↓ 5 callersMethodclose
(self)
docs/lighter/lighter-python-main/lighter/signer_client.py:908
↓ 5 callersFunctioncomputeStopLossPnl
( position: PositionSnapshot, bestBid?: number | null, bestAsk?: number | null )
src/utils/pnl.ts:16
↓ 5 callersFunctioncreateEvent
()
src/exchanges/lighter/gateway.ts:55
↓ 5 callersFunctiondecimalToScaled
(value: number | string | bigint, decimals: number)
src/exchanges/lighter/decimal.ts:35
↓ 5 callersMethodemitAccount
()
src/exchanges/lighter/gateway.ts:1488
↓ 5 callersMethodemitUpdate
()
src/strategy/common/binance-rsi.ts:109
↓ 5 callersFunctionenforceMarkPriceGuard
( side: "BUY" | "SELL", toCheckPrice: number | null | undefined, guard: OrderGuardOptions | undefined,
src/core/order-coordinator.ts:25
↓ 5 callersFunctiongetHandlers
(intent: BaseOrderIntent)
src/exchanges/order-router.ts:111
↓ 5 callersMethodgetPositionSnapshot
()
src/strategy/offset-maker-engine.ts:1033
↓ 5 callersMethodgetPositionSnapshot
()
src/strategy/liquidity-maker-engine.ts:1181
↓ 5 callersMethodgetReferencePrice
()
src/strategy/offset-maker-engine.ts:1007
↓ 5 callersMethodgetReferencePrice
()
src/strategy/liquidity-maker-engine.ts:1155
↓ 5 callersFunctionguessMarketType
(symbol: string | null | undefined)
src/exchanges/lighter/gateway.ts:2183
↓ 5 callersFunctionhuman_value
(price)
docs/ccxt/examples/js/load-all-tickers-at-once.js:19
↓ 5 callersFunctionisOperating
(locks: OrderLockMap, type: string)
src/core/order-coordinator.ts:51
↓ 5 callersFunctionmergeOrderSnapshot
(map: Map<string, Order>, order: Order)
src/exchanges/aster/gateway.ts:1300
↓ 5 callersFunctionmergeOrderSnapshot
(map: Map<string, Order>, order: Order)
src/exchanges/standx/gateway.ts:282
↓ 5 callersMethodnormalizePrice
(price: string | number)
src/strategy/grid-engine.ts:1484
↓ 5 callersFunctionnormalizeSymbolForms
(value: string | null | undefined)
src/exchanges/lighter/gateway.ts:2215
↓ 5 callersFunctionnsToMs
(ns: string)
src/exchanges/nado/gateway.ts:249
↓ 5 callersFunctionparseBoolean
(value: string | undefined, fallback: boolean)
src/config.ts:152
↓ 5 callersMethodrefreshAccountSnapshot
()
src/exchanges/standx/gateway.ts:1430
↓ 5 callersMethodrefreshPositions
()
src/exchanges/grvt/gateway.ts:604
↓ 5 callersMethodrequestJson
( path: string, options: { method: "GET" | "POST"; params?: Record<string, unknown>;
src/exchanges/standx/gateway.ts:1722
↓ 5 callersFunctionrequireNumberOption
( options: Record<string, string | boolean>, names: string[], errorMessage: string )
src/cli/command-parser.ts:456
↓ 5 callersFunctionroundUpToIncrement
(value: bigint, increment: bigint)
src/exchanges/nado/gateway.ts:225
↓ 5 callersFunctionsafeInt
safeInt safely extracts an int from a js.Value, handling undefined values
docs/lighter/lighter-go-main/wasm/main.go:62
↓ 5 callersMethodsanitize_for_serialization
Builds a JSON POST object. If obj is None, return None. If obj is SecretStr, return obj.get_secret_value() If obj is str, int
docs/lighter/lighter-python-main/lighter/api_client.py:336
↓ 5 callersFunctionscaleQuantityWithMinimum
(value: number | string | bigint, decimals: number)
src/exchanges/lighter/decimal.ts:49
↓ 5 callersMethodshouldBlockEntries
()
src/core/lib/rate-limit.ts:29
↓ 5 callersFunctionshouldStopLoss
( position: PositionSnapshot, bestBid: number, bestAsk: number, lossLimit: number )
src/utils/risk.ts:3
↓ 5 callersMethodsubscribeStream
(stream: { channel: string; symbol?: string })
src/exchanges/standx/gateway.ts:1103
↓ 5 callersMethodtoOptionalString
(value: unknown)
src/exchanges/backpack/gateway.ts:1048
↓ 5 callersFunctiontoOrderFromRest
(raw: any)
src/exchanges/aster/gateway.ts:633
↓ 5 callersMethodtryPlaceStopLoss
( side: "BUY" | "SELL", stopPrice: number, lastPrice: number )
src/strategy/trend-engine.ts:785
↓ 5 callersMethodwatchKlines
(symbol: string, interval: string, cb: KlineListener)
src/exchanges/adapter.ts:73
↓ 5 callersFunctionws_send_tx
(ws_client: websockets.ClientConnection, tx_type, tx_info, tx_hash)
docs/lighter/lighter-python-main/examples/utils.py:61
↓ 4 callersFunction_switch_api_key
(api_key_index: int)
scripts/lighter_signer_bridge.py:141
↓ 4 callersFunction_unwrap
(result: StrOrErr)
src/exchanges/lighter/lighter_signer_bridge.py:110
↓ 4 callersFunction_unwrap
(result: StrOrErr)
scripts/lighter_signer_bridge.py:89
↓ 4 callersMethodactivateKind
(kind: MarketKind)
src/exchanges/binance/gateway.ts:652
↓ 4 callersMethodaddHandler
(map: Map<string, Set<T>>, key: string, handler: T)
src/exchanges/aster/gateway.ts:998
↓ 4 callersMethodapplyAccountSnapshot
(snapshot: AccountSnapshot)
src/strategy/maker-points-engine.ts:379
↓ 4 callersMethodapplyLevels
(book: Map<string, number>, levels: DepthLevel[])
src/strategy/common/binance-depth.ts:543
↓ 4 callersFunctionbaseSnapshot
(positions: AccountSnapshot["positions"])
tests/account-snapshot-validate.test.ts:5
↓ 4 callersMethodbuildPerpSnapshot
()
src/exchanges/binance/gateway.ts:1477
↓ 4 callersMethodcloseAllSubscriptions
(map: Map<string, PublicSubscription<T>>)
src/exchanges/binance/gateway.ts:377
↓ 4 callersMethodconnect
()
src/exchanges/aster/gateway.ts:1022
↓ 4 callersFunctioncreateOrder
(overrides: Partial<LighterOrder> = {})
tests/lighter/orders.test.ts:5
↓ 4 callersFunctioncreatePosition
(overrides: Partial<LighterPosition> = {})
tests/lighter/mappers.test.ts:10
↓ 4 callersFunctioncrossDown
(prev: number | null, next: number, threshold: number)
src/strategy/swing-logic.ts:45
↓ 4 callersFunctioncrossUp
(prev: number | null, next: number, threshold: number)
src/strategy/swing-logic.ts:40
↓ 4 callersMethoddefenseCancelAllOrders
* 防御模式下取消所有挂单
src/strategy/maker-points-engine.ts:1892
↓ 4 callersMethodemitAccount
()
src/exchanges/binance/gateway.ts:1348
↓ 4 callersMethodemitAccountSnapshot
(updateTime?: number)
src/exchanges/standx/gateway.ts:1401
↓ 4 callersMethodemitUpdate
()
src/strategy/guardian-engine.ts:632
↓ 4 callersMethodensureAuthToken
()
src/exchanges/lighter/gateway.ts:784
↓ 4 callersMethodensureInitialized
()
src/exchanges/lighter/gateway.ts:330
↓ 4 callersMethodensureReady
()
src/exchanges/lighter/signer.ts:183
↓ 4 callersMethodensureSession
()
src/exchanges/grvt/gateway.ts:748
↓ 4 callersMethodensureSubscription
( map: Map<string, PublicSubscription<T>>, key: string, kind: MarketKind, stream: string,
src/exchanges/binance/gateway.ts:976
↓ 4 callersMethodfetchDepthSnapshot
(symbol: string)
src/exchanges/standx/gateway.ts:1510
↓ 4 callersMethodfetchTickerSnapshot
(symbol: string)
src/exchanges/standx/gateway.ts:1528
↓ 4 callersMethodflushOrders
()
src/strategy/offset-maker-engine.ts:887
↓ 4 callersMethodforgetOrderIdentity
(order: LighterOrder)
src/exchanges/lighter/gateway.ts:1558
↓ 4 callersMethodfrom_json
Create an instance of Tx from a JSON string
docs/lighter/lighter-python-main/lighter/models/tx.py:66
↓ 4 callersMethodgetPriceDecimals
()
src/strategy/liquidity-maker-engine.ts:1102
↓ 4 callersFunctiongetSMA
(values: Kline[], length: number)
src/utils/strategy.ts:91
↓ 4 callersMethodgetSubaccountHex
()
src/exchanges/nado/gateway.ts:1450
↓ 4 callersFunctionhashStruct
(type: string, value: Record<string, any>, types: EIP712Types)
src/exchanges/grvt/gateway.ts:1420
↓ 4 callersMethodisOrderActive
(order: Order)
src/exchanges/binance/gateway.ts:1408
↓ 4 callersMethodlogError
(context: string, error: unknown)
src/exchanges/lighter/adapter.ts:160
↓ 4 callersFunctionmakeOrderPlan
( openOrders: Order[], targets: OrderTarget[] )
src/core/lib/order-plan.ts:10
↓ 4 callersMethodmapBalanceToAccountSnapshotWithPositions
(balance: Balances, rawPositions: any[])
src/exchanges/backpack/gateway.ts:420
↓ 4 callersFunctionmockKlines
(values: number[])
tests/strategy-utils.test.ts:23
↓ 4 callersFunctionnormalizeDepthLevels
(levels: [string, string][], side: "bid" | "ask")
src/exchanges/standx/gateway.ts:301
↓ 4 callersFunctionnormalizeLevels
(raw: Array<LighterOrderBookLevel | [string | number, string | number]>)
src/exchanges/lighter/gateway.ts:2058
↓ 4 callersFunctionnormalizePositionSide
(value: unknown)
src/exchanges/binance/gateway.ts:148
↓ 4 callersFunctionnormalizePriceKey
(value: string | number | undefined)
src/exchanges/lighter/gateway.ts:2092
↓ 4 callersFunctionnormalizeSizeValue
(value: string | number | undefined)
src/exchanges/lighter/gateway.ts:2102
↓ 4 callersFunctionnormalizeSymbolKey
(value: string)
src/exchanges/binance/gateway.ts:108
↓ 4 callersMethodonRestHealthEvent
(listener: RestHealthListener)
src/exchanges/adapter.ts:83
↓ 4 callersFunctionparseClientOrderId
(cid: string)
src/strategy/grid-engine.ts:110
↓ 4 callersFunctionparseOptionalBoolean
(value: string | undefined)
src/exchanges/resolve-from-env.ts:211
↓ 4 callersMethodping
()
src/exchanges/aster/gateway.ts:78
↓ 4 callersFunctionplaceMarketOrder
( adapter: ExchangeAdapter, symbol: string, openOrders: Order[], locks: OrderLockMap, timers: OrderT
src/core/order-coordinator.ts:199
↓ 4 callersFunctionreadBooleanOption
(options: Record<string, string | boolean>, names: string[], fallback: boolean)
src/cli/command-parser.ts:424
↓ 4 callersMethodrecordWsPositionUpdate
()
src/exchanges/lighter/gateway.ts:651
↓ 4 callersMethodrefresh
(apiKeyIndex: number)
src/exchanges/lighter/types.ts:210
↓ 4 callersFunctionrender_path
Returns a string representation of a path
docs/lighter/lighter-python-main/lighter/exceptions.py:191
↓ 4 callersMethodrequest
({ path, method, params, signed = false, sendInBody, requiresApiKey = false, }: {
src/exchanges/aster/gateway.ts:481
↓ 4 callersFunctionrequireStringOption
( options: Record<string, string | boolean>, names: string[], errorMessage: string )
src/cli/command-parser.ts:412
↓ 4 callersFunctionroundDownToTick
(value: number, tick: number)
src/utils/math.ts:20
↓ 4 callersMethodrun
()
src/exchanges/lighter/gateway.ts:363
↓ 4 callersMethodscheduleReconnect
()
src/exchanges/lighter/gateway.ts:923
↓ 4 callersMethodsendAuthIfNeeded
()
src/exchanges/standx/gateway.ts:1116
↓ 4 callersMethodsignedRequest
({ path, method, params }: { path: string; method: string; params: Record<string, unknown> })
src/exchanges/aster/gateway.ts:923
← previousnext →201–300 of 3,514, ranked by callers