MCPcopy Index your code
hub / github.com/Yam-cn/pyalgotrade-cn

github.com/Yam-cn/pyalgotrade-cn @v0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2 ↗ · + Follow
3,146 symbols 12,615 edges 223 files 532 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Pyalgotrade-cn ��ԭ��Ļ����ϼ�����A����ʷ����ز⣬��������tushare�ṩʵʱ���顣�Ա��Ҷ��Լ��IJ��Խ��лز��ģ����ԡ�

���θ��µ����ݣ�

  • ����tushareʵʱ����
  • stratlib�ṩ�������������(DT, Bollinger_bandit)

��ʷ�������أ�������󣬲μ����ۣ����Ⱥ��300349971

������ԭ��Ľ��ܣ�

PyAlgoTrade is an event driven algorithmic trading Python library. Although the initial focus was on backtesting, paper trading is now possible using:

and live trading is now possible using:

To get started with PyAlgoTrade take a look at the tutorial and the full documentation.

Main Features

  • Event driven.
  • Supports Market, Limit, Stop and StopLimit orders.
  • Supports any type of time-series data in CSV format like Yahoo! Finance, Google Finance, Quandl and NinjaTrader.
  • Xignite realtime feed.
  • Bitcoin trading support through Bitstamp.
  • Technical indicators and filters like SMA, WMA, EMA, RSI, Bollinger Bands, Hurst exponent and others.
  • Performance metrics like Sharpe ratio and drawdown analysis.
  • Handling Twitter events in realtime.
  • Event profiler.
  • TA-Lib integration.

Installation

PyAlgoTrade is developed using Python 2.7 and depends on:

You can install PyAlgoTrade using pip like this:

pip install pyalgotrade

Core symbols most depended-on inside this repo

getExecutionInfo
called by 272
pyalgotrade/broker/__init__.py
getRemaining
called by 264
pyalgotrade/broker/__init__.py
getFilled
called by 254
pyalgotrade/broker/__init__.py
getBroker
called by 231
pyalgotrade/strategy/__init__.py
append
called by 196
pyalgotrade/utils/collections.py
getSubmitDateTime
called by 190
pyalgotrade/broker/__init__.py
getAvgFillPrice
called by 139
pyalgotrade/broker/__init__.py
getPrice
called by 129
pyalgotrade/bar.py

Shape

Method 2,369
Class 438
Function 334
Route 5

Languages

Python100%

Modules by API surface

pyalgotrade/talibext/indicator.py149 symbols
testcases/position_test.py112 symbols
pyalgotrade/CTP/api/CTPTdApi.py107 symbols
testcases/broker_backtesting_test.py93 symbols
pyalgotrade/broker/__init__.py83 symbols
pyalgotrade/plotter.py81 symbols
pyalgotrade/broker/backtesting.py75 symbols
testcases/bitstamp_test.py65 symbols
pyalgotrade/strategy/position.py65 symbols
pyalgotrade/strategy/__init__.py63 symbols
testcases/talib_test.py58 symbols
pyalgotrade/tushare/barfeed.py43 symbols

Datastores touched

tushareDatabase · 1 repos

For agents

$ claude mcp add pyalgotrade-cn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page