Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding more tests and streamlining code based on test results (#2)
* Added more tests, updated scripts for better test coverage Signed-off-by: Edwin Hermans <edwin@madtech.cx> * Started removing settings config Signed-off-by: Edwin Hermans <edwin@madtech.cx> * Removed unused config file code Signed-off-by: Edwin Hermans <edwin@madtech.cx>
- Loading branch information
Showing
7 changed files
with
158 additions
and
105 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
from ..kraken.kraken import KrakenUtils | ||
|
||
|
||
def main(): | ||
k = KrakenUtils() | ||
def main(authfile=None): | ||
k = KrakenUtils(authfile=authfile) | ||
deposit_limit = k.deposit_limit() | ||
withdraw_limit = k.withdraw_limit() | ||
|
||
print('deposit max: {} EUR'.format(deposit_limit)) | ||
print('withdraw max: {} BTC'.format(withdraw_limit)) | ||
return 'deposit max: {} EUR\nwithdraw max: {} BTC'.format(deposit_limit, | ||
withdraw_limit) | ||
|
||
|
||
if __name__ == "__main__": # pragma: no cover | ||
print(main()) |
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
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
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