Use the CurrencyPairMetaData to find the price scale #391
No reviewers
Labels
No labels
blocked
breaking
bug
dependencies
duplicate
enhancement
good first issue
help wanted
question
tech debt
testing
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
scion/arbitrader!391
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "currency-pair-scale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
...instead of the CurrencyMetaData which seems to have the wrong values for what we're doing.
This is intended to fix errors that have started to pop up with Kraken saying that we're using the wrong number of decimal places for several currency pairs.
I split up "price" scale and "volume" scale per @AllirionX 's comments on Discord so we're not confusing the two anymore. I also added the same logic into
exitPosition()since we're likely to have the same problem with price scale there. Before merging I still want to see it make a successful trade on somebody's machine.Yeah, I got that too. I've got a debugger ready to catch it the next time it happens. Not sure how it could be getting a null on that line but I'll figure it out.
I got a successful entry running this branch, so I think it's ready to go.