Mariner Backtesting - client.get_trades_csv()
client.get_trades_csv()
Returns a dataframe of the trades from a given list of submissions to the user
Interface
client.get_trades_csv(submissions, filename='trades.csv')
Examples
client.get_trades_csv(["9ba2a8c6ad46c3e9f47bf34c7690a58b"], filename='trades.csv') # even a single submission must be in a list!
client.get_trades_csv(["f34c7690a5869ba2a8c6ad46c3e9f47b", "c6ad46c3e9f47bf34c7690a5869ba2a8"], filename='trades20190911.csv')
Parameters
Name |
Type |
Default |
Description |
submissions |
list |
required |
List of submissions to download trades for. |
Returns
Type |
Description |
pandas.DataFrame |
Dataframe of the requested trades. |