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 FXCFD #83

Merged
merged 2 commits into from
Feb 22, 2023
Merged

Add FXCFD #83

merged 2 commits into from
Feb 22, 2023

Conversation

pronebird
Copy link
Contributor

  • Add FXCFD type which is basically CFD on FX
  • Throw an error when script stumbles upon unknown asset type. Should help with pin pointing this kind of issues in the future.

@pronebird pronebird mentioned this pull request Feb 22, 2023
@jamsix
Copy link
Owner

jamsix commented Feb 22, 2023

I think you need to replace these:

elif trades[0]["assetCategory"] == "CFD":

elif trades[0]["assetCategory"] == "CFD":

with:

elif trades[0]["assetCategory"] in ["CFD", "FXCFD"]:

@jamsix jamsix self-assigned this Feb 22, 2023
@pronebird
Copy link
Contributor Author

@jamsix Fixed.

@jamsix
Copy link
Owner

jamsix commented Feb 22, 2023

LGTM!

@jamsix jamsix merged commit fadd087 into jamsix:master Feb 22, 2023
@pronebird pronebird deleted the add-fxcfd branch February 22, 2023 08:14
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.

None yet

2 participants