FIX: [bitget] use new size instead of size #1542
Merged
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.
Bitget API changelog
https://www.bitget.com/api-doc/common/changelog
The spot order channel push now includes a new parameter newSize, which will gradually replace the existing parameter size in subsequent updates.
newSize represents the order quantity, following the specified rules:
when orderType=limit, newSize represents the quantity of base coin,
when orderType=market and side=buy, newSize represents the quantity of quote coin,
when orderType=market and side=sell, newSize represents the quantity of base coin
Unexpected Size field
The size filed is unexpected on limit buy order. it represents the size * volume. This is different from what was previously tested.
The order placed a limit buy at price 1.6 and size 5.6756, but the websocket returned size 9.0809.
The raw data above is displayed in the web console.

Other data filed in size and newSize is expected.
when orderType=limit, and side = sell, newSize and size represents the quantity of base coin,
when orderType=market and side=buy, newSize and size represents the quantity of quote coin,
when orderType=market and side=sell, newSize and size represents the quantity of base coin