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

Review Accounting After a Cash Sync #8010

Open
4 tasks done
AlexCatarino opened this issue May 9, 2024 · 1 comment
Open
4 tasks done

Review Accounting After a Cash Sync #8010

AlexCatarino opened this issue May 9, 2024 · 1 comment
Labels
bug live-trading Live trading related issues.

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

After a cash sync, the cashbook shouldn't change a lot.

Actual Behavior

The live deployment to Kraken starts with:

CashBook Total Value:                ₿0.24
2024-04-05T00:00:49.7808038Z TRACE:: Total margin information: TotalMarginUsed: 0.18, MarginRemaining: 0.06

Then we have a cash sync where the margin information jumps:

2024-04-05T11:45:00.0572082Z TRACE:: Brokerage.PerformCashSync(): Sync cash balance
2024-04-05T11:45:10.4329261Z TRACE:: Total margin information: TotalMarginUsed: 0.13, MarginRemaining: 0.32

Potential Solution

N/A

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue
@AlexCatarino AlexCatarino added bug live-trading Live trading related issues. labels May 9, 2024
@Martin-Molinero
Copy link
Member

5 is pretty big in BTC which is what the user is using, so it should be relative to the TPV I think

image

kraken, sounds like it accounting for the holdings again on each cash sync but should be the first only really

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug live-trading Live trading related issues.
Projects
None yet
Development

No branches or pull requests

2 participants