Merge remote-tracking branch 'origin/master'

This commit is contained in:
injoyai
2025-03-20 13:19:05 +08:00
3 changed files with 30 additions and 5 deletions

View File

@@ -246,6 +246,9 @@ func (this *Client) GetQuote(codes ...string) (protocol.QuotesResp, error) {
if DefaultCodes == nil {
return nil, errors.New("DefaultCodes未初始化")
}
for i := range codes {
codes[i] = DefaultCodes.AddExchange(codes[i])
}
f, err := protocol.MQuote.Frame(codes...)
if err != nil {
return nil, err