Skip to content

Commit fa3d0cc

Browse files
authored
Merge pull request #2001 from c9s/dboy/fix-xdepthmaker-depth-error
FIX: [xdepthmaker] Update hedge symbol in QueryDepth call for accurate depth querying
2 parents e97aa86 + 074d765 commit fa3d0cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/strategy/xdepthmaker/strategy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ func (s *Strategy) generateMakerOrders(
10311031
actualDepth.Float64(), requiredDepth.Float64())
10321032

10331033
if depthService, ok := s.hedgeSession.Exchange.(DepthQueryService); ok {
1034-
snapshot, _, err := depthService.QueryDepth(context.Background(), s.Symbol, 0)
1034+
snapshot, _, err := depthService.QueryDepth(context.Background(), s.HedgeSymbol, 0)
10351035
if err != nil {
10361036
s.logger.WithError(err).Errorf("unable to query source book depth via RESTful API")
10371037
} else {

0 commit comments

Comments
 (0)