Skip to content
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

Add trader_pnl to trade_params table #2394

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Conversation

luckysori
Copy link
Contributor

Addresses #2359 (comment).

Instead of allowing to insert trades early into the database (via the
`is_complete` column, which is now gone).
@luckysori luckysori requested review from bonomat and holzeis April 10, 2024 03:04
@luckysori luckysori self-assigned this Apr 10, 2024
}

impl From<(ProtocolId, &commons::TradeParams)> for TradeParams {
fn from((protocol_id, trade_params): (ProtocolId, &commons::TradeParams)) -> Self {
impl TradeParams {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you :)

Copy link
Contributor

@bonomat bonomat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@luckysori luckysori force-pushed the chore/move-pnl-to-trade-params branch from ed44ae8 to a6a8c8e Compare April 10, 2024 04:41
@luckysori luckysori enabled auto-merge April 10, 2024 04:41
@luckysori luckysori added this pull request to the merge queue Apr 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 10, 2024
@luckysori luckysori force-pushed the chore/move-pnl-to-trade-params branch from a6a8c8e to 7b246a7 Compare April 10, 2024 05:53
We can now differentiate between opening a channel, opening a position
and resizing a position.
@luckysori luckysori force-pushed the chore/move-pnl-to-trade-params branch from 7b246a7 to 16d5150 Compare April 10, 2024 07:13
@luckysori luckysori added this pull request to the merge queue Apr 10, 2024
Merged via the queue into main with commit 0f0bea2 Apr 10, 2024
22 checks passed
@luckysori luckysori deleted the chore/move-pnl-to-trade-params branch April 10, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants