Back to Ccxt

Fetch Orders

wiki/examples/py/fetch-orders.md

4.5.52356 B
Original Source
python
# -*- coding: utf-8 -*-

import os
import sys


import ccxt  # noqa: E402

exchange = ccxt.bittrex({
   "apiKey": "YOUR_API_KEY",
   "secret": "YOUR_API_SECRET",
   "enableRateLimit": True,
})

orders = exchange.fetch_orders()
print(orders)

order = exchange.fetch_order(orders[0]['id'])
print(order)