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.
Returns True if the trade was a buy.
Returns True if the trade was a sell.
Bases: pyalgotrade.barfeed.BaseBarFeed
A real-time BarFeed that builds bars from live trades.
Parameters: | maxLen (int.) – The maximum number of values that the pyalgotrade.dataseries.bards.BarDataSeries will hold. Once a bounded length is full, when new items are added, a corresponding number of items are discarded from the opposite end. If None then dataseries.DEFAULT_MAX_LEN is used. |
---|
Note
Note that a Bar will be created for every trade, so open, high, low and close values will all be the same.
Returns the event that will be emitted when the orderbook gets updated.
Return type: | pyalgotrade.observer.Event. |
---|
Bases: pyalgotrade.bitstamp.broker.BacktestingBroker
A Bitstamp paper trading broker.
Parameters: |
|
---|
Note
Bases: pyalgotrade.broker.Broker
A Bitstamp live broker.
Parameters: |
|
---|
Note
Refreshes cash and BTC balance.