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
↓ 3 callers
Method
Start
Start transitions the trader into running state.
go/pkg/manager/trader.go:122
↓ 3 callers
Method
SyncTraderPositions
SyncTraderPositions updates a single trader's cached state (stub).
go/pkg/manager/manager.go:894
↓ 3 callers
Method
Validate
()
go/internal/config/config.go:207
↓ 3 callers
Method
ValidateBytes
(raw []byte)
go/pkg/executor/schema_validator.go:33
↓ 3 callers
Function
WithAssetCacheTTL
WithAssetCacheTTL sets a time-to-live for the asset directory cache. When positive, the client refreshes asset metadata after TTL elapses.
go/pkg/exchange/hyperliquid/client.go:131
↓ 3 callers
Function
WithClock
WithClock overrides the time source (primarily for testing).
go/pkg/exchange/hyperliquid/client.go:101
↓ 3 callers
Function
WithHTTPClient
WithHTTPClient overrides the default HTTP client.
go/pkg/exchange/hyperliquid/client.go:61
↓ 3 callers
Function
WithVaultAddress
WithVaultAddress configures a vault address for signing requests.
go/pkg/exchange/hyperliquid/client.go:79
↓ 3 callers
Method
buildAccountSnapshotLocked
()
go/pkg/exchange/sim/provider.go:404
↓ 3 callers
Function
buildCancelByCloidAction
(cancels []CancelByCloid)
go/pkg/exchange/hyperliquid/order.go:101
↓ 3 callers
Function
buildModifyAction
(req ModifyOrderRequest)
go/pkg/exchange/hyperliquid/modify.go:51
↓ 3 callers
Function
calculatePriceChange
calculatePriceChange returns the fractional change (e.g., 0.01 == +1%).
go/pkg/market/exchanges/hyperliquid/data.go:247
↓ 3 callers
Method
canonicalSymbolFor
(ctx context.Context, symbol string)
go/pkg/market/exchanges/hyperliquid/client.go:222
↓ 3 callers
Function
clamp01
(x: number)
web/src/lib/ui/useDominantColors.ts:13
↓ 3 callers
Function
convertOrder
(order exchange.Order)
go/pkg/exchange/hyperliquid/order.go:232
↓ 3 callers
Function
decodePositionDetail
(raw string)
go/internal/persistence/engine/persistence.go:1340
↓ 3 callers
Function
durationOrDefault
(seconds int, fallback time.Duration)
go/internal/cache/keys.go:39
↓ 3 callers
Function
expandAndOverride
(current, envKey string)
go/pkg/llm/config.go:277
↓ 3 callers
Method
filterPositionsForTrader
(traderID string, positions []exchange.Position)
go/pkg/manager/manager.go:1118
↓ 3 callers
Function
fmtPct
(n?: number)
web/src/components/analytics/AnalyticsPanel.tsx:144
↓ 3 callers
Function
getModelMeta
(id: string)
web/src/lib/model/meta.ts:136
↓ 3 callers
Function
getNextAlignedTimestamp
(alignmentInterval: number)
web/src/lib/api/hooks/timeAligned.ts:60
↓ 3 callers
Function
getSystemTheme
()
web/src/store/useTheme.ts:13
↓ 3 callers
Function
isNearAlignmentBoundary
( alignmentInterval: number, threshold: number = 100, )
web/src/lib/api/hooks/timeAligned.ts:73
↓ 3 callers
Function
isUniqueViolation
(err error)
go/internal/persistence/engine/persistence.go:823
↓ 3 callers
Function
lookupProviderBuilder
(typeName string)
go/pkg/exchange/config.go:52
↓ 3 callers
Function
newFakeLLM
(payload string)
go/pkg/executor/executor_test.go:33
↓ 3 callers
Function
newIntegrationClient
newIntegrationClient builds a client from etc/llm.yaml via internal/config. If config is missing or invalid (e.g., api_key absent), the test fails fas
go/pkg/llm/client_integration_test.go:16
↓ 3 callers
Function
newMockProvider
--- helpers ---
go/pkg/market/exchanges/hyperliquid/client_test.go:221
↓ 3 callers
Function
normalizeKey
(symbol string)
go/pkg/market/exchanges/hyperliquid/client.go:235
↓ 3 callers
Function
pad
(n: number)
web/src/components/model/ModelOpenPositions.tsx:13
↓ 3 callers
Function
parseJSONTag
(field reflect.StructField)
go/pkg/llm/structured.go:73
↓ 3 callers
Function
parsePositiveDuration
(field, value string)
go/pkg/manager/config.go:382
↓ 3 callers
Function
parsePtrFloat
(ps *string)
go/pkg/manager/manager.go:966
↓ 3 callers
Function
pctFrom0to1
(n?: number)
web/src/components/model/ModelAnalyticsDetails.tsx:268
↓ 3 callers
Function
positionID
(modelID, symbol string)
go/internal/persistence/engine/persistence.go:769
↓ 3 callers
Function
priceAt
(klines []Kline, stepsBack int)
go/pkg/market/exchanges/hyperliquid/data.go:254
↓ 3 callers
Function
renderItems
(list: { symbol: string; price: number }[])
web/src/components/layout/PriceTicker.tsx:71
↓ 3 callers
Function
resolveCanonicalId
(id: string)
web/src/lib/model/meta.ts:49
↓ 3 callers
Method
resolveMarkPriceLocked
(coin string)
go/pkg/exchange/sim/provider.go:394
↓ 3 callers
Function
setQuery
(next: Record<string, string>)
web/src/components/positions/PositionsFilter.tsx:27
↓ 3 callers
Function
stop_server
Stop the server process.
go/scripts/run_tests.py:145
↓ 3 callers
Function
to2
(n: number)
web/src/lib/ui/useDominantColors.ts:9
↓ 3 callers
Function
toFloat
(v any)
go/pkg/backtest/journal_replay.go:213
↓ 3 callers
Function
toLin
(c: number)
web/src/components/chart/AccountValueChart.tsx:101
↓ 3 callers
Function
toMsF
(f float64)
go/cmd/importer/main.go:159
↓ 3 callers
Function
unionLen
(arr: Interval[])
web/src/components/model/ModelStatsSummary.tsx:110
↓ 3 callers
Function
upsertModel
(ctx context.Context, conn sqlx.SqlConn, id, display string)
go/cmd/importer/main.go:172
↓ 3 callers
Function
useAnalyticsMap
()
web/src/lib/api/hooks/useAnalyticsMap.ts:35
↓ 3 callers
Method
withTimeout
(ctx context.Context)
go/pkg/market/exchanges/hyperliquid/provider.go:171
↓ 3 callers
Function
writeTempManagerTemplate
(t *testing.T, content string)
go/pkg/manager/prompt_test.go:105
↓ 3 callers
Function
writeTempTemplate
(t *testing.T, content string)
go/pkg/executor/prompt_test.go:122
↓ 2 callers
Method
BuildProviders
BuildProviders instantiates exchange providers according to the configuration.
go/pkg/exchange/config.go:206
↓ 2 callers
Method
CancelByCloid
(ctx context.Context, asset int, cloid string)
go/pkg/exchange/hyperliquid/provider.go:30
↓ 2 callers
Method
CancelOrder
(ctx context.Context, asset int, oid int64)
go/pkg/exchange/hyperliquid/provider.go:15
↓ 2 callers
Method
CancelOrder
CancelOrder cancels a single order.
go/pkg/exchange/hyperliquid/provider.go:71
↓ 2 callers
Method
Chat
(ctx context.Context, req *ChatRequest)
go/pkg/llm/client.go:28
↓ 2 callers
Method
ChatStructured
(ctx context.Context, req *ChatRequest, target interface{})
go/pkg/llm/client.go:30
↓ 2 callers
Method
ChatStructured
ChatStructured enforces structured output using JSON schema and decodes the result into target.
go/pkg/llm/client.go:463
↓ 2 callers
Method
ClosePosition
ClosePosition attempts to close an open position.
go/pkg/exchange/hyperliquid/provider.go:86
↓ 2 callers
Function
ConfigFile
()
go/internal/config/config.go:82
↓ 2 callers
Method
Debug
(ctx context.Context, msg string, fields Fields)
go/pkg/llm/logger.go:16
↓ 2 callers
Method
Digest
Digest returns the sha256 hash of the template content.
go/pkg/llm/prompt.go:83
↓ 2 callers
Method
Do
(req *http.Request)
go/pkg/exchange/hyperliquid/client_methods_test.go:19
↓ 2 callers
Method
Enforce
Enforce validates the template at templatePath meets the guard expectations and returns the parsed version.
go/pkg/llm/promptmeta.go:26
↓ 2 callers
Method
FormatPrice
FormatPrice rounds and formats a price using the client's configured significant figures, after verifying the asset exists.
go/pkg/exchange/hyperliquid/provider.go:167
↓ 2 callers
Method
FormatSize
FormatSize rounds a float quantity to szDecimals and returns a string.
go/pkg/exchange/hyperliquid/provider.go:161
↓ 2 callers
Method
GetAccountState
GetAccountState returns current account state.
go/pkg/exchange/hyperliquid/provider.go:96
↓ 2 callers
Method
GetAccountValue
(ctx context.Context)
go/pkg/exchange/hyperliquid/provider.go:21
↓ 2 callers
Method
GetAccountValue
GetAccountValue returns parsed account value.
go/pkg/exchange/hyperliquid/provider.go:101
↓ 2 callers
Method
GetAccountValue
GetAccountValue returns the account value parsed as float64.
go/pkg/exchange/hyperliquid/account.go:33
↓ 2 callers
Method
GetActiveTraders
GetActiveTraders returns a stable-ordered slice of currently active traders.
go/pkg/manager/manager.go:432
↓ 2 callers
Method
GetAssetIndex
GetAssetIndex resolves asset index for a symbol.
go/pkg/exchange/hyperliquid/provider.go:106
↓ 2 callers
Method
GetCurrentPrice
GetCurrentPrice returns the current mid price for the given symbol.
go/pkg/market/exchanges/hyperliquid/market_info.go:22
↓ 2 callers
Method
GetOpenOrders
(ctx context.Context)
go/pkg/exchange/hyperliquid/provider.go:16
↓ 2 callers
Method
GetOpenOrders
GetOpenOrders returns currently resting orders.
go/pkg/exchange/hyperliquid/provider.go:76
↓ 2 callers
Method
GetPositions
GetPositions fetches all open positions.
go/pkg/exchange/hyperliquid/provider.go:81
↓ 2 callers
Method
IOCMarket
Convenience wrappers (not part of the generic exchange.Provider interface) IOCMarket places an IOC order using a small price slippage as market.
go/pkg/exchange/hyperliquid/provider.go:113
↓ 2 callers
Method
ListAll
(ctx context.Context)
go/pkg/repo/trader_config_repo.go:56
↓ 2 callers
Method
ListAssets
ListAssets implements market.Provider by returning all supported symbols.
go/pkg/market/exchanges/hyperliquid/provider.go:117
↓ 2 callers
Method
ListByTrader
(ctx context.Context, traderID string, limit int)
go/internal/model/traderconfighistorymodel.go:18
↓ 2 callers
Method
LoadAccountTotals
LoadAccountTotals loads account totals from JSON file
go/internal/data/loader.go:31
↓ 2 callers
Function
LoadConfigFromReader
LoadConfigFromReader constructs a Config from an io.Reader.
go/pkg/market/config.go:86
↓ 2 callers
Method
LoadLeaderboard
LoadLeaderboard loads leaderboard from JSON file
go/internal/data/loader.go:69
↓ 2 callers
Method
LoadSinceInception
LoadSinceInception loads since inception values from JSON file
go/internal/data/loader.go:58
↓ 2 callers
Function
MACD
MACD returns MACD, signal, and histogram series.
go/pkg/market/indicators/indicators.go:57
↓ 2 callers
Method
ModifyOrder
(ctx context.Context, req ModifyOrderRequest)
go/pkg/exchange/hyperliquid/provider.go:32
↓ 2 callers
Function
NewCSVKlineFeeder
NewCSVKlineFeeder constructs a CSV feeder from an io.Reader.
go/pkg/backtest/feeder_kline.go:32
↓ 2 callers
Function
NewJSONSchemaValidator
(path string)
go/pkg/executor/schema_validator.go:16
↓ 2 callers
Function
NewPrivateKeySigner
NewPrivateKeySigner constructs a signer from a hex-encoded private key string.
go/pkg/exchange/hyperliquid/auth.go:33
↓ 2 callers
Function
NewPromptTemplate
NewPromptTemplate parses the template at path using the provided template functions.
go/pkg/llm/prompt.go:26
↓ 2 callers
Method
Next
(ctx context.Context, symbol string)
go/pkg/backtest/engine.go:17
↓ 2 callers
Method
PlaceOrder
PlaceOrder delegates to the underlying client.
go/pkg/exchange/hyperliquid/provider.go:66
↓ 2 callers
Method
PlaceTriggerReduceOnly
(ctx context.Context, coin string, isBuy bool, qty float64, triggerPrice float64, tpsl string)
go/pkg/exchange/hyperliquid/provider.go:26
↓ 2 callers
Function
ProjectRoot
ProjectRoot attempts to locate the repository root by walking upwards from this source file until it finds a directory containing go.mod or .git. Fall
go/pkg/confkit/path.go:13
↓ 2 callers
Function
RegisterProvider
RegisterProvider registers a market provider constructor.
go/pkg/market/config.go:51
↓ 2 callers
Method
Render
Render generates the final prompt string populated with inputs.
go/pkg/executor/prompt.go:56
↓ 2 callers
Method
Render
Render executes the template using the supplied inputs.
go/pkg/manager/prompt.go:44
↓ 2 callers
Function
ResolveModelID
ResolveModelID returns the fully qualified model identifier in provider/model form.
go/pkg/llm/provider.go:8
↓ 2 callers
Method
ToExecutorView
ToExecutorView converts to the compact view used by the executor prompts.
go/pkg/manager/trader.go:74
← previous
next →
201–300 of 1,407, ranked by callers