-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since the API documentation might be a little unclear: https://github.com/veox/krakenex/issues/1
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python2 | ||
# | ||
# Demonstrates how to use the conditional close functionality; that is, | ||
# placing an order that, once filled, will place another order. | ||
# | ||
# This can be useful for very simple automation, where a bot is not | ||
# needed to constantly monitor execution. | ||
|
||
import krakenex | ||
|
||
k = krakenex.API() | ||
k.load_key('kraken.key') | ||
|
||
k.query_private('AddOrder', {'pair': 'XXBTZEUR', | ||
'type': 'buy', | ||
'ordertype': 'limit', | ||
'price': '1', | ||
'volume': '1', | ||
'close[pair]': 'XXBTZEUR', | ||
'close[type]': 'sell', | ||
'close[ordertype]': 'limit', | ||
'close[price]': '9001', | ||
'close[volume]': '1'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
keykeykeykeykeykeykeykeykeykeykeykeykeykeykeykeykeykeykey | ||
secretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecret |
15dd9ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"https://github.com/veox/krakenex/issues/1" is throwing a 404 Error.