Repository navigation
fix: normalize zero-padded HK symbols in the grid and multi-leg builders - #636
Open
hogan-yuan wants to merge 2 commits into
Open
hogan-yuan wants to merge 2 commits into
hogan-yuan wants to merge 2 commits into
Conversation
5.5.0 canonicalized 00700.HK -> 700.HK in the trade and asset builders but missed SubmitGridOrderOptions, GetGridOrdersOptions.symbol, GridContext.symbol_info and SubmitMultiLegOrderLeg. Route them through normalize_symbol_owned as well.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #627, which canonicalizes
00700.HK→700.HKin the trade and asset builders because the gateway answers a padded HK symbol with an empty result instead of an error. Four builders were missed and still send the padded form unchanged:SubmitGridOrderOptions::newGetGridOrdersOptions::symbolGridContext::symbol_infoSubmitMultiLegOrderLeg::newThey now go through the same
normalize_symbol_owned. Other markets are sent verbatim, as before.I have not measured the grid endpoints' behaviour with a padded symbol; this is for consistency with the rest of the trade surface, so
00700.HKbehaves the same everywhere.Tests
grid::context::symbol_normalization_testsandsubmit_multileg_normalizes_leg_symbols.🤖 Generated with Claude Code