Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/wquguru/nof0
/ functions
Functions
1,407 in github.com/wquguru/nof0
⨍
Functions
1,407
◇
Types & classes
373
↓ 5 callers
Function
NewConversationsLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
go/internal/logic/conversationslogic.go:21
↓ 5 callers
Function
NewLogger
NewLogger returns a Logger backed by go-zero's logx.
go/pkg/llm/logger.go:25
↓ 5 callers
Function
NewPromptRenderer
NewPromptRenderer parses the template at the provided path applying the optional version guard.
go/pkg/manager/prompt.go:23
↓ 5 callers
Function
ParseStructured
ParseStructured decodes a JSON string into the provided target value.
go/pkg/llm/structured.go:60
↓ 5 callers
Method
PlaceOrder
PlaceOrder submits a single order to the exchange endpoint.
go/pkg/exchange/hyperliquid/client.go:196
↓ 5 callers
Method
Positions
(req *types.PositionsRequest)
go/internal/logic/positionslogic.go:29
↓ 5 callers
Method
RecordUsage
(model string, tokens int64)
go/pkg/llm/budget.go:57
↓ 5 callers
Method
Snapshot
Snapshot implements market.Provider by returning an aggregated market snapshot.
go/pkg/market/exchanges/hyperliquid/provider.go:96
↓ 5 callers
Method
Warn
(ctx context.Context, msg string, fields Fields)
go/pkg/llm/logger.go:18
↓ 5 callers
Function
WithBaseURL
WithBaseURL overrides the default info endpoint URL.
go/pkg/market/exchanges/hyperliquid/client.go:54
↓ 5 callers
Function
buildCloid
buildCloid creates a stable client order id for idempotent intent submission.
go/pkg/manager/manager.go:1475
↓ 5 callers
Function
buildCloseOrder
(assetIdx int, markPx string, pos exchange.Position)
go/pkg/exchange/hyperliquid/position.go:77
↓ 5 callers
Method
cachedAssetIndex
(key string)
go/pkg/exchange/hyperliquid/utils.go:52
↓ 5 callers
Function
convertToolCalls
(calls []openai.ChatCompletionMessageToolCall)
go/pkg/llm/client.go:735
↓ 5 callers
Method
doRequest
doRequest posts an InfoRequest and decodes the response into result.
go/pkg/market/exchanges/hyperliquid/client.go:102
↓ 5 callers
Function
formatFloat
(val float64)
go/pkg/market/exchanges/hyperliquid/client_test.go:371
↓ 5 callers
Method
getPositionOwner
(symbol string)
go/pkg/manager/manager.go:1023
↓ 5 callers
Method
hashSetJSON
(ctx context.Context, key, field string, ttl time.Duration, payload any)
go/internal/persistence/engine/persistence.go:1195
↓ 5 callers
Function
intFmt
(n?: number)
web/src/components/model/ModelAnalyticsDetails.tsx:253
↓ 5 callers
Function
markerOf
(row: AccountTotalsRow)
web/src/lib/api/hooks/useAccountTotals.ts:25
↓ 5 callers
Function
newMockHyperliquidServer
(t *testing.T)
go/pkg/market/exchanges/hyperliquid/client_test.go:230
↓ 5 callers
Function
nullFloat
(f float64)
go/cmd/importer/main.go:206
↓ 5 callers
Function
pad
(x: number)
web/src/components/chat/ModelChatPanel.tsx:111
↓ 5 callers
Method
refreshAssetDirectory
(ctx context.Context)
go/pkg/exchange/hyperliquid/utils.go:66
↓ 5 callers
Function
sectionLine
(name string, section confkit.Section[T])
go/internal/cli/logging.go:64
↓ 5 callers
Function
trimSign
(value string)
go/pkg/exchange/hyperliquid/position.go:133
↓ 5 callers
Function
usePositions
()
web/src/lib/api/hooks/usePositions.ts:62
↓ 5 callers
Function
validateOrder
validateOrder ensures order parameters meet basic exchange constraints.
go/pkg/exchange/hyperliquid/order.go:187
↓ 4 callers
Method
CancelAllBySymbol
CancelAllBySymbol is a no-op for the simulator.
go/pkg/exchange/sim/provider.go:383
↓ 4 callers
Method
CryptoPrices
()
go/internal/logic/cryptopriceslogic.go:29
↓ 4 callers
Method
FindOne
(ctx context.Context, traderID string)
go/pkg/repo/trader_config_repo.go:55
↓ 4 callers
Method
GetAccountState
Account information.
go/pkg/exchange/interface.go:18
↓ 4 callers
Method
GetAccountValue
(ctx context.Context)
go/pkg/exchange/interface.go:19
↓ 4 callers
Method
GetKlines
GetKlines fetches OHLCV data for the given interval.
go/pkg/market/exchanges/hyperliquid/kline.go:16
↓ 4 callers
Method
LoadAnalytics
LoadAnalytics loads all analytics from JSON file
go/internal/data/loader.go:76
↓ 4 callers
Function
LoadConfig
LoadConfig reads configuration from disk.
go/pkg/llm/config.go:108
↓ 4 callers
Method
LoadCryptoPrices
LoadCryptoPrices loads crypto prices from JSON file
go/internal/data/loader.go:24
↓ 4 callers
Function
NewExecutor
NewExecutor constructs a BasicExecutor. The templatePath is the executor prompt template provided by caller.
go/pkg/executor/executor.go:41
↓ 4 callers
Function
NewPositionsLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
go/internal/logic/positionslogic.go:21
↓ 4 callers
Function
NewProvider
NewProvider constructs a Hyperliquid exchange provider.
go/pkg/exchange/hyperliquid/provider.go:41
↓ 4 callers
Method
Next
Next returns the next snapshot built from the close series.
go/pkg/backtest/feeder_kline.go:68
↓ 4 callers
Method
PlaceOrders
PlaceOrders submits multiple orders atomically.
go/pkg/exchange/hyperliquid/client.go:201
↓ 4 callers
Method
Run
Run starts the ingestion loop and blocks until the context is cancelled.
go/internal/ingest/market_ingestor.go:76
↓ 4 callers
Method
SetStopLoss
SetStopLoss places a reduce-only trigger order as stop loss. positionSide: "LONG" or "SHORT".
go/pkg/exchange/hyperliquid/provider.go:119
↓ 4 callers
Method
UpdateLeverage
(ctx context.Context, asset int, isCross bool, leverage int)
go/pkg/exchange/hyperliquid/provider.go:19
↓ 4 callers
Method
Validate
Validate ensures budget configuration is sane.
go/pkg/llm/config.go:89
↓ 4 callers
Method
Validate
Validate checks that required configuration is present.
go/pkg/llm/config.go:175
↓ 4 callers
Function
WithDefaultSlippage
WithDefaultSlippage configures a default slippage fraction used by helpers when caller does not specify one (e.g. 0.01 = 1%).
go/pkg/exchange/hyperliquid/client.go:111
↓ 4 callers
Function
WithPriceSigFigs
WithPriceSigFigs sets the default number of price significant figures used by helper methods when formatting prices.
go/pkg/exchange/hyperliquid/client.go:121
↓ 4 callers
Function
adjustLuminance
(hex: string, amt: number)
web/src/lib/ui/useDominantColors.ts:17
↓ 4 callers
Method
assignVirtualPosition
(trader *VirtualTrader, pos VirtualPosition)
go/pkg/manager/manager.go:1037
↓ 4 callers
Method
cachedAssetInfo
(key string)
go/pkg/exchange/hyperliquid/utils.go:59
↓ 4 callers
Function
canonical
(coin string)
go/pkg/exchange/sim/provider.go:58
↓ 4 callers
Function
canonicalAssetKey
(symbol string)
go/pkg/exchange/hyperliquid/utils.go:114
↓ 4 callers
Function
computeCloseLimit
(mark string, isBuy bool)
go/pkg/exchange/hyperliquid/position.go:111
↓ 4 callers
Method
enforceSecondaryRisk
(trader *VirtualTrader, decision *executorpkg.Decision, leverage int)
go/pkg/manager/manager.go:1289
↓ 4 callers
Function
fileExists
(p string)
go/pkg/confkit/helpers.go:5
↓ 4 callers
Function
formatValue
(v: number | undefined)
web/src/components/chart/AccountValueChart.tsx:280
↓ 4 callers
Method
hashDelField
(ctx context.Context, key, field string)
go/internal/persistence/engine/persistence.go:1230
↓ 4 callers
Function
isFinite
(f float64)
go/pkg/exchange/hyperliquid/utils.go:177
↓ 4 callers
Function
isPositiveDecimal
(value string)
go/pkg/exchange/hyperliquid/order.go:212
↓ 4 callers
Function
logPersistenceError
(err error, msg string, fields map[string]any)
go/pkg/manager/persistence.go:102
↓ 4 callers
Method
logf
(format string, args ...interface{})
go/pkg/exchange/hyperliquid/client.go:455
↓ 4 callers
Function
makeSequence
(start, end, step float64)
go/pkg/market/exchanges/hyperliquid/client_test.go:375
↓ 4 callers
Method
maybeRefreshAssetDirectory
maybeRefreshAssetDirectory refreshes the asset directory if the TTL has expired. It swallows errors to keep call sites simple; the normal lookup path
go/pkg/exchange/hyperliquid/utils.go:121
↓ 4 callers
Function
pad
(n: number)
web/src/components/trades/TradesTable.tsx:246
↓ 4 callers
Method
refreshSymbolDirectory
(ctx context.Context)
go/pkg/market/exchanges/hyperliquid/client.go:189
↓ 4 callers
Method
releaseVirtualPosition
(traderID, symbol string)
go/pkg/manager/manager.go:1065
↓ 4 callers
Method
resolvePath
(path string)
go/pkg/manager/config.go:244
↓ 4 callers
Function
statColored
(label: string, value?: string, num?: number)
web/src/components/model/ModelAnalyticsDetails.tsx:229
↓ 4 callers
Function
useLatestEquityMap
()
web/src/lib/api/hooks/useModelSnapshots.ts:13
↓ 4 callers
Function
useTrades
()
web/src/lib/api/hooks/useTrades.ts:26
↓ 3 callers
Function
ATR
ATR computes the Average True Range across the Kline series.
go/pkg/market/indicators/indicators.go:127
↓ 3 callers
Method
BaseDir
()
go/internal/config/config.go:261
↓ 3 callers
Method
CancelAllBySymbol
CancelAllBySymbol cancels all resting orders for the given symbol.
go/pkg/exchange/hyperliquid/provider.go:132
↓ 3 callers
Method
CancelOrders
CancelOrders executes batch cancellations.
go/pkg/exchange/hyperliquid/client.go:223
↓ 3 callers
Method
ClosePosition
(ctx context.Context, coin string)
go/pkg/exchange/interface.go:14
↓ 3 callers
Method
FormatPrice
FormatPrice rounds a raw price to the client's configured significant figures and returns a trimmed decimal string. It optionally checks the asset exi
go/pkg/exchange/hyperliquid/utils.go:182
↓ 3 callers
Method
FormatSize
FormatSize rounds a float quantity to the coin's szDecimals and returns a normalized decimal string (no scientific notation).
go/pkg/exchange/hyperliquid/convenience.go:14
↓ 3 callers
Method
GetAccountState
(ctx context.Context)
go/pkg/exchange/hyperliquid/provider.go:20
↓ 3 callers
Method
GetPositions
Position management.
go/pkg/exchange/interface.go:13
↓ 3 callers
Method
GetPositions
GetPositions returns live positions by delegating to account state.
go/pkg/exchange/hyperliquid/position.go:13
↓ 3 callers
Method
GetSubAccounts
GetSubAccounts retrieves the list of subaccounts for a master user address.
go/pkg/exchange/hyperliquid/client.go:368
↓ 3 callers
Method
GetVaultDetails
GetVaultDetails retrieves vault details by address (optionally scoped by user).
go/pkg/exchange/hyperliquid/client.go:381
↓ 3 callers
Method
InsertTx
(ctx context.Context, tx *sql.Tx, data *TraderConfig)
go/internal/model/traderconfigmodel.go:21
↓ 3 callers
Method
Latest
Latest loads the most recent N cycle records (ascending order).
go/pkg/journal/reader.go:64
↓ 3 callers
Function
LoadConfigFromReader
LoadConfigFromReader constructs a Config from a reader.
go/pkg/llm/config.go:129
↓ 3 callers
Method
LoadConversations
LoadConversations loads conversations from JSON file
go/internal/data/loader.go:157
↓ 3 callers
Method
LoadPositions
LoadPositions loads positions from JSON file
go/internal/data/loader.go:141
↓ 3 callers
Method
LoadTrades
LoadTrades loads trades from JSON file
go/internal/data/loader.go:42
↓ 3 callers
Method
MainPath
()
go/internal/config/config.go:257
↓ 3 callers
Function
NewBudgetGuard
(cfg *BudgetConfig)
go/pkg/llm/budget.go:31
↓ 3 callers
Function
NewCryptoPricesLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
go/internal/logic/cryptopriceslogic.go:21
↓ 3 callers
Method
NewExecutor
(traderCfg TraderConfig)
go/pkg/manager/manager.go:34
↓ 3 callers
Method
PlaceOrder
Order management.
go/pkg/exchange/interface.go:8
↓ 3 callers
Method
Render
Render executes the template with the provided data and returns the rendered string.
go/pkg/llm/prompt.go:41
↓ 3 callers
Method
Scaled
Scaled applies a multiplier to a TTL class, useful for half/double TTL variants.
go/internal/cache/keys.go:64
↓ 3 callers
Method
SetMarkPrice
SetMarkPrice updates the reference price used for unrealised PnL and IOC fills.
go/pkg/exchange/sim/provider.go:77
↓ 3 callers
Method
SetPersistence
(p Persistence)
go/pkg/market/provider.go:15
↓ 3 callers
Method
SetTakeProfit
SetTakeProfit places a reduce-only trigger order as take profit. positionSide: "LONG" or "SHORT".
go/pkg/exchange/hyperliquid/provider.go:126
← previous
next →
101–200 of 1,407, ranked by callers