Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bensema/gotdx
/ functions
Functions
1,198 in github.com/bensema/gotdx
⨍
Functions
1,198
◇
Types & classes
309
↓ 829 callers
Method
Write
(b []byte)
hosts_test.go:102
↓ 163 callers
Function
encodePrice
(value int)
proto/protocol_test.go:11
↓ 143 callers
Function
formatFloat
(value float64)
cmd/webviewer/query.go:5757
↓ 138 callers
Function
getprice
pytdx : 类似utf-8的编码方式保存有符号数字
proto/proto.go:206
↓ 116 callers
Function
valueOrDefault
(params map[string]string, key string, def string)
cmd/webviewer/query.go:4442
↓ 111 callers
Function
writeMACFloat32
(t *testing.T, buf *bytes.Buffer, value float32)
proto/mac_protocol_test.go:18
↓ 98 callers
Function
Utf8ToGbk
(text []byte)
proto/util.go:13
↓ 95 callers
Method
Disconnect
Disconnect 断开服务器
client.go:365
↓ 90 callers
Method
Uint8
()
types/constants.go:34
↓ 83 callers
Function
executeProtocol
(client *Client, protocol proto.Protocol[T])
client_helpers.go:12
↓ 78 callers
Function
seqID
()
proto/proto.go:168
↓ 73 callers
Method
Read
(b []byte)
hosts_test.go:101
↓ 72 callers
Function
parseUint32Value
(params map[string]string, key string, def uint32)
cmd/webviewer/query.go:4421
↓ 65 callers
Function
mustBuildRequest
(t *testing.T, msg RequestBuilder)
proto/protocol_test.go:60
↓ 63 callers
Function
parseUint16Value
(params map[string]string, key string, def uint16)
cmd/webviewer/query.go:4412
↓ 57 callers
Function
writeFloat32
(t *testing.T, buf *bytes.Buffer, value float32)
proto/ex_protocol_test.go:20
↓ 53 callers
Function
parseUint8Value
(params map[string]string, key string, def uint8)
cmd/webviewer/query.go:4403
↓ 45 callers
Function
withMainClient
(fn func(*gotdx.Client) (queryPayload, error))
cmd/webviewer/query.go:4264
↓ 41 callers
Function
buildExRequest
(method uint16, payload []byte)
proto/ex_request.go:16
↓ 39 callers
Method
quotationClient
()
client_unified.go:12
↓ 33 callers
Function
readReqHeader
(t *testing.T, raw []byte)
proto/protocol_test.go:69
↓ 32 callers
Function
assertNearFloat64
(t *testing.T, got float64, want float64, label string)
proto/mac_protocol_test.go:11
↓ 27 callers
Method
String
()
types/constants.go:36
↓ 27 callers
Function
readExReqHeader
(t *testing.T, raw []byte)
proto/ex_protocol_test.go:11
↓ 24 callers
Function
NewMainClient
()
examples/internal/exampleutil/client.go:5
↓ 23 callers
Method
ConnectMAC
()
client_mac.go:30
↓ 21 callers
Function
makeMACCode22
(code string)
proto/mac_util.go:21
↓ 21 callers
Function
withExClient
(fn func(*gotdx.Client) (queryPayload, error))
cmd/webviewer/query.go:4273
↓ 20 callers
Function
NewExClient
()
examples/internal/exampleutil/client.go:20
↓ 19 callers
Method
exQuotationClient
()
client_unified.go:37
↓ 19 callers
Function
makeCode6
(code string)
client_helpers.go:32
↓ 19 callers
Function
withMACClient
(fn func(*gotdx.Client) (queryPayload, error))
cmd/webviewer/query.go:4282
↓ 17 callers
Function
NewMACClient
()
examples/internal/exampleutil/client.go:48
↓ 17 callers
Function
parseICFQSTableIndex
(params map[string]string, def int)
cmd/webviewer/query.go:5444
↓ 16 callers
Function
payloadFromICFQSTable
(raw map[string]any, tableIndex int)
cmd/webviewer/query.go:5478
↓ 15 callers
Function
withMACExClient
(fn func(*gotdx.Client) (queryPayload, error))
cmd/webviewer/query.go:4291
↓ 14 callers
Method
PostTQL
PostTQL posts a TQLEX request with Params/oauth_zzfw and parses the response object.
icfqs.go:94
↓ 14 callers
Function
WithTimeoutSec
(timeoutSec int)
options.go:104
↓ 13 callers
Function
anyToFloat64
(v interface{})
proto/mac_symbol_belong_board.go:182
↓ 12 callers
Function
New
(opts ...Option)
client.go:27
↓ 12 callers
Method
applyMACFieldBitmap
(*[20]byte)
mac_bitmap.go:5
↓ 12 callers
Function
newICFQSViewerClient
(host string)
cmd/webviewer/query.go:5430
↓ 11 callers
Function
parseCodeList
(value string)
cmd/webviewer/query.go:4359
↓ 11 callers
Function
requireIntegration
(t *testing.T)
client_test.go:22
↓ 10 callers
Method
Connect
Connect 连接券商行情服务器
client.go:311
↓ 10 callers
Function
newMACIntegrationClient
()
client_mac_integration_test.go:12
↓ 9 callers
Method
Close
()
hosts_test.go:103
↓ 9 callers
Method
Response
()
proto/server.go:251
↓ 9 callers
Function
WithTCPAddress
(tcpAddress string)
options.go:56
↓ 9 callers
Function
newClient
()
client_test.go:12
↓ 8 callers
Function
CleanCode
(code string)
types/util.go:197
↓ 8 callers
Function
newClientWithOptions
(opt *Options, mode clientMode)
client.go:80
↓ 7 callers
Method
String
()
hosts_test.go:113
↓ 7 callers
Function
WithExTCPAddress
(tcpAddress string)
options.go:68
↓ 7 callers
Function
expandUint8List
(values []uint8, targetLen int, label string)
cmd/webviewer/query.go:4386
↓ 7 callers
Function
getfloat32
(b []byte, pos *int)
proto/proto.go:254
↓ 7 callers
Function
hostAddresses
(hosts []HostInfo)
hosts.go:259
↓ 7 callers
Function
makeMACCode22Client
(code string)
client_mac.go:714
↓ 7 callers
Function
parseUint8List
(value string)
cmd/webviewer/query.go:4373
↓ 7 callers
Function
preview
(text string, max int)
cmd/webviewer/query.go:5749
↓ 7 callers
Function
rowsFromExQuotes
(items []proto.ExQuoteItem)
cmd/webviewer/query.go:4921
↓ 7 callers
Function
rowsFromRawReply
(reply *proto.RawDataReply)
cmd/webviewer/query.go:4514
↓ 6 callers
Function
ExHostAddresses
ExHostAddresses returns the built-in extended-market host:port list.
hosts.go:202
↓ 6 callers
Method
GetSecurityListRange
GetSecurityListRange 获取市场内指定范围内的证券代码
client_quote.go:113
↓ 6 callers
Function
MACFieldBitmap
MACFieldBitmap 根据字段位和预设组合构造 20 字节 MAC 动态字段位图。
mac_bitmap.go:229
↓ 6 callers
Function
MACHostAddresses
MACHostAddresses returns the built-in MAC quote host:port list.
hosts.go:207
↓ 6 callers
Function
MainHostAddresses
MainHostAddresses returns the built-in main quote host:port list.
hosts.go:192
↓ 6 callers
Function
NewICFQS
NewICFQS creates an ICFQS HTTP client.
icfqs.go:40
↓ 6 callers
Method
ParseResponse
(header *RespHeader, data []byte)
proto/server.go:213
↓ 6 callers
Function
ProbeHosts
ProbeHosts concurrently dials the supplied built-in host entries and returns the results sorted by reachability and latency.
hosts.go:223
↓ 6 callers
Function
cloneHosts
(hosts []HostInfo)
hosts.go:255
↓ 6 callers
Function
decodeDateNum
(category uint16, num uint32, index bool)
proto/proto.go:265
↓ 6 callers
Function
formatFloat32Ptr
(value *float32)
cmd/webviewer/query.go:5786
↓ 6 callers
Function
makeCode23
(code string)
client_helpers.go:44
↓ 6 callers
Function
round2
(v float64)
client_unified.go:1096
↓ 6 callers
Function
splitHosts
(hosts []string)
examples/internal/exampleutil/client.go:82
↓ 5 callers
Method
ConnectEx
ConnectEx 连接扩展市场服务器并完成登录
client.go:338
↓ 5 callers
Method
CurrentAddress
()
client.go:56
↓ 5 callers
Function
DefaultMACBoardMembersQuotesFieldBitmap
DefaultMACBoardMembersQuotesFieldBitmap 返回与当前稳定成分报价接口一致的默认字段位图。
mac_bitmap.go:241
↓ 5 callers
Method
DownloadFullFile
DownloadFullFile 下载完整文件
client_extras.go:55
↓ 5 callers
Function
ExchangeMACBoardCode
(boardSymbol string)
proto/mac_util.go:27
↓ 5 callers
Method
GetTransactionData
GetTransactionData 获取分时成交
client_quote.go:281
↓ 5 callers
Function
MACExHostAddresses
MACExHostAddresses returns the built-in MAC extended-market host:port list.
hosts.go:212
↓ 5 callers
Method
MACQuotesWithDate
MACQuotesWithDate 获取 MAC 行情快照与分时采样,并可指定查询日期。
client_mac.go:463
↓ 5 callers
Method
ParseResponse
(header *RespHeader, data []byte)
proto/experimental.go:673
↓ 5 callers
Method
Response
()
proto/experimental.go:702
↓ 5 callers
Function
WithICFQSAddress
WithICFQSAddress sets the ICFQS host:port or base URL.
icfqs.go:67
↓ 5 callers
Function
WithMacTCPAddress
(tcpAddress string)
options.go:80
↓ 5 callers
Function
anyToString
(v interface{})
proto/mac_symbol_belong_board.go:154
↓ 5 callers
Function
applyTurnoverToBars
(items []proto.SecurityBar, floatShares float64)
client_unified.go:1080
↓ 5 callers
Function
defaultAddressAndPool
(addresses []string, fallback string)
hosts.go:267
↓ 5 callers
Function
formatAny
(value any)
cmd/webviewer/query.go:5761
↓ 5 callers
Method
loadFloatShares
(qc *Client, market uint8, code string)
client_unified.go:1034
↓ 5 callers
Function
makeMACCode21
(code string)
proto/mac_util.go:15
↓ 5 callers
Function
makeStocks
(markets []uint8, codes []string)
client_helpers.go:80
↓ 5 callers
Function
newGenericRawMainProtocol
(method uint16, payload []byte)
proto/experimental.go:41
↓ 5 callers
Function
newICFQSViewerHotClient
(host string)
cmd/webviewer/query.go:5437
↓ 5 callers
Function
parseMACBoardMembersQuotesFieldBitmap
(value string)
cmd/webviewer/query.go:4489
↓ 5 callers
Function
quotesSortReverse
(sortType uint16, reverse bool)
client_helpers.go:110
↓ 5 callers
Method
timeout
()
client.go:193
next →
1–100 of 1,198, ranked by callers