1. Traderbot package

1.1. Submodules

1.2. Traderbot.Activate module

class Traderbot.Activate.Activate(arg)

Bases: object

docstring for Activate.

Traderbot.Activate.main(arg)

1.3. Traderbot.Analyze module

1.4. Traderbot.Collect module

class Traderbot.Collect.Collect

Bases: object

Collects Data from exchange

Attributes: candles: The last candle chart data recieved from the market.

get_order_trades(arg)
update_chart_data(currency_pair='USDT_BTC', start=3600, end=1508785162.4056427, period=900)

Returns the candle chart data.

Inputs currecyPair: such as “USDT_BTC” start: how long ago to start retrieving chart data end: when to stop retrieving the chart data period: the period of the candle data. Excepted periods are 300, 900, 1800, 7200, 14400, and 86400, and are given in seconds.

“Start” and “end” are given in UNIX timestamp format and used to specify the date range for the data returned. By default, the method will return BTC in USDT, starting an hour ago, ending now, with a period of 900 seconds.

Output candles: returns a list of dictionaries. Each dictionary contains one candle.

Sample output looks like this... [{“date”:1405699200,”high”:0.0045388,”low”:0.00403001, “open”:0.00404545, “close”:0.00427592,”volume”:44.11655644, “quoteVolume”:10259.29079097,”weightedAverage”:0.00430015}, ...]

Traderbot.Collect.main()

1.5. Traderbot.Report module

class Traderbot.Report.Report

Bases: object

docstring for Report.

write_csv(data, file_name, header)

Creates csv file and writes data into csv file.

Inputs data: a list of a dictionary or dictionaries. file_name: name in the form of a string for csv file that you want to create. Exclude the ‘.csv’ suffix. It will be added on within this method. header: A list of headers for the .csv file.

Exceptions Raised PermissionError: when the file being written to is already open. ValueError: when the header does not contain the keys provided of all dictionaries from within the data parameter.

Traderbot.Report.main()

1.6. Module contents