Individual trade data

These function retrieve data regarding individual trades that have been executed on the exchange.

trades()

Individual trade data

tn_trades()

Individual trade data (testnet)

map_trades()

Trade data over an extended period

tn_map_trades()

Trade data over an extended period (testnet)

Bucketed trade data

It is often convient to group individual trades together into “buckets” for a specified time interval. These functions return bucketed trade data for the follow intervals: 1-minute, 5-minutes, 1-hour, 1-day

bucket_trades()

Bucketed trade data

tn_bucket_trades()

Bucketed trade data (testnet)

map_bucket_trades()

Bucket trade data over an extended period

tn_map_bucket_trades()

Bucket trade data over an extended period (testnet)

Managing trades

These functions allow you to place, edit and cancel orders on the exchange.

place_order()

Place an order

tn_place_order()

Place an order (testnet)

edit_order()

Edit an order

tn_edit_order()

Edit an order (testnet)

cancel_order()

Cancel order

tn_cancel_order()

Cancel order (testnet)

cancel_all_orders()

Cancel all orders

tn_cancel_all_orders()

Cancel all orders (testnet)

Additional requests

Use these functions for addition GET or POST requests that do not have a specific wrapper. Just specify the path to the API endpiont and valid parameters with the request.

get_bitmex()

GET requests

tn_get_bitmex()

GET requests (testnet)

post_bitmex()

POST requests

tn_post_bitmex()

POST requests (testnet)

Helpers

Helper functions

available_symbols()

Available symbols

valid_dates()

Start date of data availability for available symbols