Skip to main content

A tool to help you pick the optimal securities for Norbert's Gambit

Project description

eNGame

A tool to help you pick the optimal securities to convert between US and Canadian currency using Norbert's Gambit, based on near-realtime data obtained from Yahoo Finance.

Example

My brokerage charges me commissions of US$15.00 + US$0.01/share to buy US$ securities, and a flat CA$8.00 to sell CA$ securities.

I can execute both of the trades near-instantaneously, without needing to call or message my broker to "journal" shares from one currency to the other BMO InvestorLine is an example of a brokerage where [no journaling step is required](https://www.reddit.com/r/PersonalFinanceCanada/comments/ya3bwh.

I want to convert US$50,000 to CA$. Right now, the mid-market exchange rate is about 1.3512 CAD/USD.

What are the 5 best interlisted CA$/US$ stocks or ETFs to use to do this conversion right now?

Engame can show you the best options. Note that the three best options right now would get you an effective exchange rate that's actually slightly better than the mid-market exchange rate, assuming that you execute both sides of the trade near-instantaneously at the stated bid/ask prices:

$ engame USD 50000 -v -L 5 -S '15.00 + 0.01 * shares' -D '8.00'

Screenshot

Details

Run engame --help for more details.

TODO

Configuration file for preferred symbols and commission structure?

Automatic detection of some of the common pitfalls and problems, including ex-dividend dates and differing market holidays on US and Canadian markets.

Disclaimers

  1. Do not use this if you don't understand how Norbert's Gambit works.
  2. I take no responsibility for the accuracy or the timeliness of the stock/ETF/currency data.
  3. I take no responsibility for the correctness of the calculations.
  4. Without a realtime data source for Level II quotes, we cannot be sure that there is sufficient market depth to complete both sides of the trade at the expected prices. Limit orders cannot protect you here, because both sides of the trade need to complete quickly in order to achieve the desired currency-conversion outcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

engame-0.0.4.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

engame-0.0.4-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file engame-0.0.4.tar.gz.

File metadata

  • Download URL: engame-0.0.4.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/22.6.0

File hashes

Hashes for engame-0.0.4.tar.gz
Algorithm Hash digest
SHA256 be2044bf0b409357e6c412cd6f02e069ab2d9cedc1ce319ac7ec47a1481ae3fa
MD5 9a25ef23e2cfee7fc1604af0c69bbcb9
BLAKE2b-256 73a12c0731cbd8c1e7366b76f614fe3462faf2812f863c8d25f955ca741a664d

See more details on using hashes here.

File details

Details for the file engame-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: engame-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/22.6.0

File hashes

Hashes for engame-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 882b0cbe04b1533d00e820c0f6f378e63c8bcbda2600abe96badec13b6c804d9
MD5 205efa3f547e1b3f99a51a5fd028d20b
BLAKE2b-256 8284714551d989353a70d5efdaa9035b48c66cae1996d2a7ea0389b66cb9379a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page