This package has classes for the events emitted by Bitstamp’s streaming service. Check https://www.bitstamp.net/websocket/ for more information.
Bases: pyalgotrade.websocket.pusher.Event
An order book update event.
Returns a list with the top 20 ask prices.
Returns a list with the top 20 ask volumes.
Returns a list with the top 20 bid prices.
Returns a list with the top 20 bid volumes.
Returns the datetime.datetime when this event was received.
Bases: pyalgotrade.websocket.pusher.Event
A trade event.
Returns the trade amount.
Returns the datetime.datetime when this event was received.
Returns the trade id.
Returns the trade price.
Bases: pyalgotrade.observer.Subject
This class is responsible for the interaction with Bitstamp. In order to get the client running it has to be included in the dispatch loop. Check the example code to get this done.
Returns the event that will be emitted as new trades are received from Bitstamp. To subscribe to this event you need to pass in a callable object that receives one parameter:
Returns the event that will be emitted as new trades are received from Bitstamp. To subscribe to this event you need to pass in a callable object that receives one parameter:
Note
It is not necessary to manually subscribe to this event since trades are notified by the BarFeed.
Bases: pyalgotrade.barfeed.BaseBarFeed
A real-time BarFeed that builds bars from live trades.
Parameters: |
|
---|
Note
Note that a Bar will be created for every trade, so open, high, low and close values will all be the same.
Bases: pyalgotrade.broker.backtesting.Broker
A Bitstamp paper trading broker.
Parameters: |
|
---|
Note
Only limit orders are supported.