-
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
[IND-486] update trades api with fill type #779
Changes from 3 commits
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 | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -58,8 +58,6 @@ import { | |||||||||||||||||||||||||||||||||
generateFillSubaccountMessage, | ||||||||||||||||||||||||||||||||||
generatePerpetualMarketMessage, | ||||||||||||||||||||||||||||||||||
generatePerpetualPositionsContents, | ||||||||||||||||||||||||||||||||||
isDeleveraging, | ||||||||||||||||||||||||||||||||||
isLiquidation, | ||||||||||||||||||||||||||||||||||
} from '../../src/helpers/kafka-helper'; | ||||||||||||||||||||||||||||||||||
import { protoTimestampToDate } from '../../src/lib/helper'; | ||||||||||||||||||||||||||||||||||
import { DydxIndexerSubtypes, VulcanMessage } from '../../src/lib/types'; | ||||||||||||||||||||||||||||||||||
|
@@ -807,8 +805,7 @@ export async function expectDefaultTradeKafkaMessageFromTakerFillId( | |||||||||||||||||||||||||||||||||
price: takerFill!.price, | ||||||||||||||||||||||||||||||||||
side: takerFill!.side.toString(), | ||||||||||||||||||||||||||||||||||
createdAt: takerFill!.createdAt, | ||||||||||||||||||||||||||||||||||
liquidation: isLiquidation(takerFill!), | ||||||||||||||||||||||||||||||||||
deleveraging: isDeleveraging(takerFill!), | ||||||||||||||||||||||||||||||||||
type: takerFill!.type, | ||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||
Comment on lines
805
to
811
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 - type: takerFill!.type,
+ type: mapFillTypeToTradeType(takerFill!.type), Please ensure that the Commitable suggestion
Suggested change
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. I am OK with using FillType directly here. It wouldn't hurt to create a new TradeType and do the mapping, but it won't make any difference to FE at this moment. 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. @johnqh Understood. If you're confident that the |
||||||||||||||||||||||||||||||||||
|
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.
are you manually editing this? It should be autogenerated when
comlink
is builtThere 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.
ah yeah, cc @johnqh