Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/discountry/ritmex-bot
/ functions
Functions
3,514 in github.com/discountry/ritmex-bot
⨍
Functions
3,514
◇
Types & classes
596
↳
Endpoints
2
↓ 1,157 callers
Method
get
( path: string, options: { query?: Record<string, unknown>; headers?: Record<string, strin
src/exchanges/lighter/http-client.ts:206
↓ 672 callers
Method
log
(type, detail)
src/strategy/grid-engine.ts:349
↓ 469 callers
Function
t
(key: TranslationKey, params: Record<string, unknown> = {}, lang: Language = language)
src/i18n/index.ts:738
↓ 212 callers
Function
log
(exchange, symbol, timeframe)
docs/ccxt/examples/ccxt.pro/js/calculate-ohlcvs-from-trades-warmup.js:9
↓ 152 callers
Method
call_api
Makes the HTTP request (synchronous) :param method: Method to call. :param url: Path to method endpoint. :param header_params:
docs/lighter/lighter-python-main/lighter/api_client.py:251
↓ 121 callers
Method
close
(intent: ClosePositionIntent)
src/exchanges/order-router.ts:28
↓ 105 callers
Method
add
(handler: (value: T) => void)
src/exchanges/lighter/gateway.ts:49
↓ 103 callers
Method
read
(self)
docs/lighter/lighter-python-main/lighter/rest.py:38
↓ 100 callers
Method
response_deserialize
Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. :param response_types_map: dict of
docs/lighter/lighter-python-main/lighter/api_client.py:286
↓ 94 callers
Function
formatNumber
(value: number | null | undefined, digits = 4, fallback = "-")
src/utils/format.ts:11
↓ 87 callers
Method
createOrder
(params: CreateOrderParams)
src/exchanges/adapter.ts:75
↓ 87 callers
Function
parseNumber
(value: string | undefined, fallback: number)
src/config.ts:145
↓ 83 callers
Method
ensureInitialized
(context?: string)
src/exchanges/adapter-utils.ts:22
↓ 78 callers
Function
extractMessage
(error: unknown)
src/utils/errors.ts:22
↓ 64 callers
Method
on
(event: GridEvent, listener: GridListener)
src/strategy/grid-engine.ts:265
↓ 52 callers
Method
param_serialize
Builds the HTTP request params needed by the request. :param method: Method to call. :param resource_path: Path to method endpoint.
docs/lighter/lighter-python-main/lighter/api_client.py:142
↓ 50 callers
Method
select_header_accept
Returns `Accept` based on an array of accepts provided. :param accepts: List of headers. :return: Accept (e.g. application/json).
docs/lighter/lighter-python-main/lighter/api_client.py:560
↓ 48 callers
Method
run
(self)
docs/lighter/lighter-python-main/lighter/ws_client.py:153
↓ 47 callers
Function
fromX18
(valueX18: BigNumber.Value)
src/exchanges/nado/gateway.ts:168
↓ 43 callers
Method
stop
(intent: StopOrderIntent)
src/exchanges/order-router.ts:26
↓ 42 callers
Method
cancelOrder
(params: { symbol: string; orderId: number | string })
src/exchanges/adapter.ts:76
↓ 40 callers
Function
getPosition
(snapshot: AccountSnapshot | null, symbol: string)
src/utils/strategy.ts:10
↓ 39 callers
Function
wrapErr
(err error)
docs/lighter/lighter-go-main/wasm/main.go:19
↓ 38 callers
Function
formatPriceToString
(price: number, decimals: number)
src/utils/math.ts:64
↓ 38 callers
Function
safeSubscribe
( subscribe: (cb: (payload: T) => void) => void, handler: (payload: T) => void, log: LogHandler, messa
src/strategy/common/subscriptions.ts:8
↓ 37 callers
Method
debug
Debug status :param value: The debug status, True or False. :type: bool
docs/lighter/lighter-python-main/lighter/configuration.py:301
↓ 34 callers
Method
sleep
(duration: number)
src/exchanges/paradex/gateway.ts:994
↓ 33 callers
Method
emit
(value: T)
src/exchanges/lighter/gateway.ts:51
↓ 33 callers
Function
run
(id)
docs/ccxt/examples/js/error-handling.js:16
↓ 32 callers
Function
isUnknownOrderError
(error: unknown)
src/utils/errors.ts:1
↓ 30 callers
Method
send
(notification: TradeNotification)
src/notifications/types.ts:15
↓ 29 callers
Function
default_example_setup
(config_file="./api_key_config.json")
docs/lighter/lighter-python-main/examples/utils.py:33
↓ 28 callers
Method
cancelAllOrders
(params: { symbol: string })
src/exchanges/adapter.ts:78
↓ 26 callers
Function
resolveExchangeId
(value?: string | null)
src/exchanges/create-adapter.ts:76
↓ 25 callers
Method
info
info Get info of zklighter :param _request_timeout: timeout setting for this request. If one number
docs/lighter/lighter-python-main/lighter/api/root_api.py:41
↓ 25 callers
Function
isOrderActiveStatus
(status: string | undefined)
src/utils/order-status.ts:1
↓ 25 callers
Method
update
(position: PositionSnapshot, referencePrice: number | null)
src/strategy/common/session-volume.ts:8
↓ 24 callers
Function
nowMs
()
src/exchanges/nado/gateway.ts:204
↓ 24 callers
Function
signedTxResponseErr
(err any)
docs/lighter/lighter-go-main/sharedlib/main.go:73
↓ 24 callers
Function
unlockOperating
( locks: OrderLockMap, timers: OrderTimerMap, pendings: OrderPendingMap, type: string )
src/core/order-coordinator.ts:74
↓ 23 callers
Method
market
(intent: MarketOrderIntent)
src/exchanges/order-router.ts:25
↓ 23 callers
Method
off
(event: GridEvent, listener: GridListener)
src/strategy/grid-engine.ts:269
↓ 23 callers
Function
toNumber
(value: unknown)
src/exchanges/binance/gateway.ts:155
↓ 22 callers
Method
next_nonce
(self, api_key: Optional[int] = None)
docs/lighter/lighter-python-main/lighter/nonce_manager.py:49
↓ 21 callers
Function
createAccountSnapshot
(symbol: string, positionAmt: number)
tests/grid-engine.test.ts:125
↓ 21 callers
Method
emitAccount
(snapshot: AccountSnapshot)
tests/grid-engine.test.ts:53
↓ 21 callers
Function
getTopPrices
(depth?: Depth | null)
src/utils/price.ts:3
↓ 19 callers
Method
logDebug
(context: string, detail?: unknown)
src/exchanges/standx/gateway.ts:1330
↓ 19 callers
Function
recoverPanic
recoverPanic wraps a function execution with panic recovery
docs/lighter/lighter-go-main/wasm/main.go:106
↓ 19 callers
Function
stepSwing
( state: SwingState, config: SwingLogicConfig, input: SwingStepInput )
src/strategy/swing-logic.ts:50
↓ 18 callers
Method
emitUpdate
()
src/strategy/maker-points-engine.ts:1378
↓ 18 callers
Function
normalizeSymbol
(raw: string)
src/exchanges/standx/gateway.ts:192
↓ 18 callers
Function
print_api
(method, *args, **kwargs)
docs/lighter/lighter-python-main/examples/get_info.py:14
↓ 17 callers
Function
getClient
(args []js.Value)
docs/lighter/lighter-go-main/wasm/main.go:85
↓ 17 callers
Function
getClient
getClient returns the go TxClient from the specified cApiKeyIndex and cAccountIndex
docs/lighter/lighter-go-main/sharedlib/main.go:108
↓ 17 callers
Method
getOrderKey
(side: "BUY" | "SELL", price: string, intent: "ENTRY" | "EXIT" = "ENTRY")
src/strategy/grid-engine.ts:1473
↓ 17 callers
Function
table
(values)
docs/ccxt/examples/ccxt.pro/py/bitmex_watch_ohlcv.py:5
↓ 16 callers
Method
Hash
(lighterChainId uint32, extra ...g.Element)
docs/lighter/lighter-go-main/types/txtypes/interface.go:20
↓ 16 callers
Method
Sign
(message []byte, hFunc hash.Hash)
docs/lighter/lighter-go-main/signer/key_manager.go:13
↓ 16 callers
Method
Validate
()
docs/lighter/lighter-go-main/types/txtypes/interface.go:18
↓ 16 callers
Method
check_client
(self)
docs/lighter/lighter-python-main/lighter/signer_client.py:354
↓ 16 callers
Method
emitOrders
(orders: Order[])
tests/grid-engine.test.ts:57
↓ 16 callers
Function
normalizeOrderIdentity
(value: unknown)
src/exchanges/lighter/order-identity.ts:10
↓ 16 callers
Function
trim_exception
(e: Exception)
docs/lighter/lighter-python-main/examples/utils.py:8
↓ 15 callers
Method
FullFillDefaultOps
FullFillDefaultOps returns a usable TransactOpts object if none was provided. This should not the be case for sharedlib, except for the nonce, which i
docs/lighter/lighter-go-main/client/tx_client.go:59
↓ 15 callers
Method
computeDesiredOrders
(price: number)
src/strategy/grid-engine.ts:1559
↓ 15 callers
Function
computePositionPnl
( position: PositionSnapshot, bestBid?: number | null, bestAsk?: number | null )
src/utils/pnl.ts:3
↓ 15 callers
Function
convertTxInfoToJS
(info txtypes.TxInfo, err error)
docs/lighter/lighter-go-main/wasm/main.go:37
↓ 15 callers
Function
convertTxInfoToResponse
(txInfo txtypes.TxInfo, err error)
docs/lighter/lighter-go-main/sharedlib/main.go:81
↓ 15 callers
Function
getExchangeDisplayName
(id: SupportedExchangeId)
src/exchanges/create-adapter.ts:84
↓ 15 callers
Method
getSnapshot
()
src/strategy/grid-engine.ts:273
↓ 15 callers
Function
getTransactOpts
(cNonce C.longlong)
docs/lighter/lighter-go-main/sharedlib/main.go:114
↓ 15 callers
Function
getTxInfo
(tx interface{})
docs/lighter/lighter-go-main/types/txtypes/utils.go:41
↓ 15 callers
Method
resolveMarket
(symbol: string, preferredKind?: MarketKind)
src/exchanges/binance/gateway.ts:1625
↓ 15 callers
Function
resolveSymbolFromEnv
(explicitExchangeId?: SupportedExchangeId | string | null)
src/config.ts:103
↓ 15 callers
Method
send_tx
(self, tx_type: StrictInt, tx_info: str)
docs/lighter/lighter-python-main/lighter/signer_client.py:893
↓ 15 callers
Function
signedTxResponsePanic
(err any)
docs/lighter/lighter-go-main/sharedlib/main.go:77
↓ 14 callers
Method
cancelOrders
(params: { symbol: string; orderIdList: Array<number | string> })
src/exchanges/adapter.ts:77
↓ 14 callers
Function
createExchangeAdapter
(options: ExchangeFactoryOptions)
src/exchanges/create-adapter.ts:88
↓ 14 callers
Method
emitUpdate
()
src/strategy/offset-maker-engine.ts:962
↓ 14 callers
Method
emitUpdate
()
src/strategy/liquidity-maker-engine.ts:1109
↓ 14 callers
Method
get_default
Return new instance of ApiClient. This method returns newly created, based on default constructor, object of ApiClient class or retur
docs/lighter/lighter-python-main/lighter/api_client.py:119
↓ 14 callers
Function
isRateLimitError
(error: unknown)
src/utils/errors.ts:32
↓ 14 callers
Function
marketClose
( adapter: ExchangeAdapter, symbol: string, openOrders: Order[], locks: OrderLockMap, timers: OrderT
src/core/order-coordinator.ts:377
↓ 13 callers
Method
__decode_tx_info
(result: SignedTxResponse)
docs/lighter/lighter-python-main/lighter/signer_client.py:285
↓ 13 callers
Method
call
(method: string, params: Record<string, unknown>)
src/exchanges/lighter/signer.ts:120
↓ 13 callers
Method
emitOrders
()
src/exchanges/standx/gateway.ts:1387
↓ 13 callers
Function
getHex10FromUint64
(value uint64)
docs/lighter/lighter-go-main/types/txtypes/utils.go:49
↓ 13 callers
Function
normalizeSymbolInput
(value: string)
src/exchanges/nado/gateway.ts:148
↓ 12 callers
Function
buildAdapterFromEnv
(options: BuildAdapterOptions)
src/exchanges/resolve-from-env.ts:18
↓ 12 callers
Method
create_order
( self, market_index, client_order_index, base_amount,
docs/lighter/lighter-python-main/lighter/signer_client.py:488
↓ 12 callers
Method
emitUpdate
()
src/strategy/maker-engine.ts:605
↓ 12 callers
Method
pickString
(values: Array<unknown>)
src/exchanges/backpack/gateway.ts:1102
↓ 12 callers
Method
resolveDisplaySymbol
(kind: MarketKind, marketId: string)
src/exchanges/binance/gateway.ts:1692
↓ 12 callers
Method
resolveDisplaySymbol
(canonical: string, fallback: string)
src/exchanges/nado/gateway.ts:2221
↓ 11 callers
Function
assertAllowedOptions
( options: Record<string, string | boolean>, allowed: ReadonlySet<string> )
src/cli/command-parser.ts:385
↓ 11 callers
Method
ensureInitialized
(symbol?: string)
src/exchanges/paradex/gateway.ts:139
↓ 11 callers
Method
notify
(notification: TradeNotification)
src/strategy/maker-points-engine.ts:1447
↓ 11 callers
Method
queryOpenOrders
()
src/exchanges/adapter.ts:85
↓ 11 callers
Function
shouldResetMarketOrders
(bucket: unknown, snapshot: boolean)
src/exchanges/lighter/order-feed.ts:9
next →
1–100 of 3,514, ranked by callers