Skip to main content

PyPI - Version PyPI - Downloads Donate


This is the official and updated Python MarketQuant repository.

Installation

pip install MarketQuant matplotlib numpy pandas mplfinance scipy mplcursors yfinance
You may need to use pip3 instead of pip

Schwab Quick setup

  1. Setup your Schwab developer account here.
    • Create a new Schwab individual developer app with callback url "https://127.0.0.1" (case sensitive)
    • Wait until the status is "Ready for use", note that "Approved - Pending" will not work.
    • Enable TOS (Thinkorswim) for your Schwab account, it is needed for orders and other api calls.
  2. Why do I need to do this?
    • This will allow you to utilize the streaming and data tools that require a more nuanced data provider.
    • More data providers will be added in future updates.
    • You do not need a schwab account to utilize the Strategy Simulator. This uses data derived from Yahoo.

What can this program do?

  • Build and simulate trading strategies using the TradingEngine class.
  • Utilize market data tools to create algorithms, strategies, or anything you can think of within the scope.
  • Charts your trades and outputs your strategy performance.
  • Extensible Framework to allow for complete customization.
  • Constantly adding more tools and features.

TBD

  • Paper trading client.
  • Charles Schwab API implementation to the Data Engine for the Simulator.
  • Bring over and configure quantitative tools to the repo.
  • Add YouTube tutorials for the library.

Notes

The MarketQuant folder has all the code for the repo.

Youtube Tutorials

  1. MarketQuant Installation Tutorial

Mozilla Public License 2.0

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at:

https://mozilla.org/MPL/2.0/

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Metadata

Release files for marketquant 0.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marketquant 0.4.7
File Size Uploaded
marketquant-0.4.7.tar.gz 43.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marketquant 0.4.7
File Interpreter ABI Platform
marketquant-0.4.7-py3-none-any.whl Python 3 none any Details

Total release size: 96.2 kB

Release files / marketquant-0.4.7.tar.gz

Download URL marketquant-0.4.7.tar.gz
Size 43.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2d5874aba65b1e8bec7454a49e2d4b959853088dbb7d17e88940c81a8390da47
BLAKE2b-256 checksum
How to use checksums
ff375448f848f4dd03cbf316e0201e0fd29f0f4e39356ee9d915738c6f8556c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / marketquant-0.4.7-py3-none-any.whl

Download URL marketquant-0.4.7-py3-none-any.whl
Size 52.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5494ff19f35b1205f6c339940d503ec7e114321ced9fa698cd5b8cadb35f4156
BLAKE2b-256 checksum
How to use checksums
21c8cb37ba9a299cd680b23ef1ac31b33fdf99e59d040a4c98cf321aa3964a0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.4.7 This release

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page