MtGox support depends on ws4py (https://github.com/Lawouach/WebSocket-for-Python) and tornado (http://www.tornadoweb.org/en/stable/) so be sure to have those installed before moving forward.
Download trades for a given month.
Parameters: |
|
---|
Note
This will take some time since Mt. Gox API returns no more than 1000 trades on each request
Download trades for a given year.
Parameters: |
|
---|
Note
This will take some time since Mt. Gox API returns no more than 1000 trades on each request
Bases: pyalgotrade.observer.Subject
This class is responsible for all trading interaction with MtGox.
Parameters: |
|
---|
Note
For apiKey and apiSecret check the Application and API access section in mtgox.com.
Bases: pyalgotrade.barfeed.csvfeed.BarFeed
A BarFeed that builds bars from a trades CSV file.
Parameters: |
|
---|
Note
Note that a pyalgotrade.bar.Bar instance will be created for every trade, so open, high, low and close values will all be the same.
Loads bars from a trades CSV formatted file.
Parameters: |
|
---|
Note
Every file that you load bars from must have trades in the same currency.
Bases: pyalgotrade.barfeed.BaseBarFeed
A real-time BarFeed that builds bars from live trades.
Parameters: |
|
---|
Note
Note that a pyalgotrade.bar.Bar instance will be created for every trade, so open, high, low and close values will all be the same.
Bases: pyalgotrade.broker.backtesting.Broker
A backtesting broker.
Parameters: |
|
---|
Note
Neither stop nor stop limit orders are supported.