Noel Maersk
Noel Maersk
I've added an example based on OP's description in [`examples/retrieve-csv-report.py`](https://github.com/veox/python3-krakenex/blob/51f84694c732d4221eaa925a02ce519c63a83ae6/examples/retrieve-csv-report.py). Sorry all for being so stubborn about this, but as far as I see `krakenex`, it's "mature" and I'd like...
`krakenex` does not implement methods one-by-one. In other words, the two you mention should already be available, by passing appropriate `data` to [`query_private()`](https://python3-krakenex.readthedocs.io/en/latest/#krakenex.API.query_private). From the top of my head: ```...
Can confirm locally (Arch Linux, Python 3.8, `krakenex` 2.1.0) with syntax as in description; but see below.
Note that [this has not been the syntax](https://github.com/veox/python3-krakenex/blob/be73ff5d343abf1ad6ad0ef503296288a66befc3/examples/order-conditional-close.py) the last it was tested: ``` python response = kraken.query_private('AddOrder', {'pair': 'XXBTZEUR', 'type': 'buy', 'ordertype': 'limit', 'price': '1', 'volume': '1', # `ordertype`,...
The documentation at https://www.kraken.com/features/api#add-standard-order is likely misleading/outdated. See discussion in issues #39 and #94 as possibly related.
Also it looks like `'ordertype': 'stop-loss-profit'` is available neither on Kraken's "New Order" page ATM, nor on `trade.kraken.com` - if it ever has been available. (Trailing stops certainly have been...
This syntax "works": ``` python In [55]: data = {'pair': 'XXBTZEUR', ...: 'type': 'buy', ...: 'ordertype': 'limit', ...: 'price': '80.0', ...: 'volume': '0.01', ...: 'close[type]': 'stop-loss-profit', ...: 'close[price]': '70.0', ...:...
Marking issue as upstream, due to their outdated/misleading docs; nothing to do on this end. ----- Still, note you're using improper syntax, too. This "works", showing that the provided `ordertype`...
From the other issue: > Would be better to provide a setup which uses dotenv or something similar and gitignores the local credential file. As it stands you're encouraging users...
Currently, the examples show `load_key('file-in-same-dir.key')`. This could be changed to something else (e.g. `'/secure-store/kraken.key'`). What would using dotenv provide? After all, this approach still needs a `.gitignore`. The current one...