mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 17:28:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
- [Krakenfutures Basic](./examples/py/)
|
||||
|
||||
|
||||
```python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import sys
|
||||
from pprint import pprint
|
||||
|
||||
|
||||
import ccxt # noqa: E402
|
||||
|
||||
print("CCXT Version:", ccxt.__version__)
|
||||
|
||||
|
||||
exchange = ccxt.krakenfutures()
|
||||
markets = exchange.load_markets()
|
||||
# exchange.verbose = True # uncomment for debugging purposes if necessary
|
||||
print(exchange.name, "supports the following methods:")
|
||||
pprint(exchange.has)
|
||||
print(exchange.name, "supports the following trading symbols:")
|
||||
for symbol in exchange.symbols:
|
||||
print(symbol)
|
||||
symbol = 'BTC/USD:USD'
|
||||
orderbook = exchange.fetch_order_book(symbol)
|
||||
pprint(orderbook)
|
||||
```
|
||||
Reference in New Issue
Block a user