-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOB-1007] add protos for final settlement clob pair status and removal reason #828
Changes from 4 commits
a260fe1
ddef3f7
3131060
f8a4ea4
7569349
2121202
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -75,6 +75,9 @@ export enum OrderRemovalReason { | |||||
* equity tier requirements. | ||||||
*/ | ||||||
ORDER_REMOVAL_REASON_EQUITY_TIER = 13, | ||||||
|
||||||
/** ORDER_REMOVAL_REASON_FINAL_SETTLEMENT - The order has been removed since its ClobPair has entered final settlement. */ | ||||||
ORDER_REMOVAL_REASON_FINAL_SETTLEMENT = 14, | ||||||
UNRECOGNIZED = -1, | ||||||
} | ||||||
/** OrderRemovalReason is an enum of all the reasons an order was removed. */ | ||||||
|
@@ -155,6 +158,9 @@ export enum OrderRemovalReasonSDKType { | |||||
* equity tier requirements. | ||||||
*/ | ||||||
ORDER_REMOVAL_REASON_EQUITY_TIER = 13, | ||||||
|
||||||
/** ORDER_REMOVAL_REASON_FINAL_SETTLEMENT - The order has been removed since its ClobPair has entered final settlement. */ | ||||||
ORDER_REMOVAL_REASON_FINAL_SETTLEMENT = 14, | ||||||
UNRECOGNIZED = -1, | ||||||
} | ||||||
export function orderRemovalReasonFromJSON(object: any): OrderRemovalReason { | ||||||
|
@@ -215,6 +221,10 @@ export function orderRemovalReasonFromJSON(object: any): OrderRemovalReason { | |||||
case "ORDER_REMOVAL_REASON_EQUITY_TIER": | ||||||
return OrderRemovalReason.ORDER_REMOVAL_REASON_EQUITY_TIER; | ||||||
|
||||||
case 14: | ||||||
case "ORDER_REMOVAL_REASON_FINAL_SETTLEMENT": | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment for - case "ORDER_REMOVAL_REASON_FINAL_SETTLEMENT":
+ case "ORDER_REMOVAL_REASON_FINAL_SETTLEMENT - The order has been removed due to final settlement of its ClobPair.": Committable suggestion
Suggested change
|
||||||
return OrderRemovalReason.ORDER_REMOVAL_REASON_FINAL_SETTLEMENT; | ||||||
|
||||||
case -1: | ||||||
case "UNRECOGNIZED": | ||||||
default: | ||||||
|
@@ -265,6 +275,9 @@ export function orderRemovalReasonToJSON(object: OrderRemovalReason): string { | |||||
case OrderRemovalReason.ORDER_REMOVAL_REASON_EQUITY_TIER: | ||||||
return "ORDER_REMOVAL_REASON_EQUITY_TIER"; | ||||||
|
||||||
case OrderRemovalReason.ORDER_REMOVAL_REASON_FINAL_SETTLEMENT: | ||||||
return "ORDER_REMOVAL_REASON_FINAL_SETTLEMENT"; | ||||||
|
||||||
case OrderRemovalReason.UNRECOGNIZED: | ||||||
default: | ||||||
return "UNRECOGNIZED"; | ||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,6 +176,8 @@ func ConvertToClobPairStatus(status clobtypes.ClobPair_Status) ClobPairStatus { | |
return ClobPairStatus_CLOB_PAIR_STATUS_POST_ONLY | ||
case clobtypes.ClobPair_STATUS_INITIALIZING: | ||
return ClobPairStatus_CLOB_PAIR_STATUS_INITIALIZING | ||
case clobtypes.ClobPair_STATUS_FINAL_SETTLEMENT: | ||
return ClobPairStatus_CLOB_PAIR_STATUS_FINAL_SETTLEMENT | ||
default: | ||
panic("invalid clob pair status") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using
jakob-dydx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment for
ORDER_REMOVAL_REASON_FINAL_SETTLEMENT
in theOrderRemovalReasonSDKType
enum should be updated to match the new wording in theOrderRemovalReason
enum for consistency.Committable suggestion