Skip to content

Commit

Permalink
[Version] v1.3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Apr 30, 2020
1 parent f61efc4 commit 8cf0ccb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.13] - 2020-04-30
### Added
- Pylint and Black code style checkers

### Fixed
- Code style issues

### Removed
- Singleton annotation
- get_value_or_default replaced by native dict.get

## [1.3.12] - 2020-04-27
### Updated
- Cython requirement
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OctoBot-Commons [1.3.12](https://github.com/Drakkar-Software/OctoBot-Commons/blob/master/CHANGELOG.md)
# OctoBot-Commons [1.3.13](https://github.com/Drakkar-Software/OctoBot-Commons/blob/master/CHANGELOG.md)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b31f3ab3511744a5a5ca6b9bb48e77bb)](https://app.codacy.com/gh/Drakkar-Software/OctoBot-Commons?utm_source=github.com&utm_medium=referral&utm_content=Drakkar-Software/OctoBot-Commons&utm_campaign=Badge_Grade_Dashboard)
[![PyPI](https://img.shields.io/pypi/v/OctoBot-Commons.svg)](https://pypi.python.org/pypi/OctoBot-Commons/)
[![Coverage Status](https://coveralls.io/repos/github/Drakkar-Software/OctoBot-Commons/badge.svg?branch=master)](https://coveralls.io/github/Drakkar-Software/OctoBot-Commons?branch=master)
Expand Down
2 changes: 1 addition & 1 deletion octobot_commons/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# License along with this library.

PROJECT_NAME = "OctoBot-Commons"
VERSION = "1.3.12" # major.minor.revision
VERSION = "1.3.13" # major.minor.revision

MARKET_SEPARATOR = "/"
DICT_BULLET_TOKEN_STR = "\n "
Expand Down
10 changes: 5 additions & 5 deletions octobot_commons/pretty_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ def open_order_pretty_printer(exchange_name, dict_order, markdown=False) -> str:
order_type = parse_order_type(dict_order)
if order_type == TraderOrderType.UNKNOWN:
order_type = TradeOrderSide(
get_value_or_default(
dict_order, ExchangeConstantsOrderColumns.SIDE.value
dict_order.get(
ExchangeConstantsOrderColumns.SIDE.value
)
)
quantity = get_value_or_default(
quantity = dict_order.get(
dict_order, ExchangeConstantsOrderColumns.AMOUNT.value, 0.0
)
price = get_value_or_default(
price = dict_order.get(
dict_order, ExchangeConstantsOrderColumns.PRICE.value, 0.0
)
creation_time = get_value_or_default(
creation_time = dict_order.get(
dict_order, ExchangeConstantsOrderColumns.TIMESTAMP.value, 0
)

Expand Down

0 comments on commit 8cf0ccb

Please sign in to comment.