Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum #423

Merged
merged 3 commits into from
Mar 21, 2024
Merged

Enum #423

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.9.43] - 2023-03-21
### Added
PROFITABILITY to InitializationEventExchangeTopics

## [1.9.42] - 2023-02-20
### Removed
- usd_like_value from MinimalFund
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.9.42](https://github.com/Drakkar-Software/OctoBot-Commons/blob/master/CHANGELOG.md)
# OctoBot-Commons [1.9.43](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.9.42" # major.minor.revision
VERSION = "1.9.43" # major.minor.revision

MARKET_SEPARATOR = "/"
SETTLEMENT_ASSET_SEPARATOR = ":"
Expand Down
3 changes: 1 addition & 2 deletions octobot_commons/databases/implementations/meta_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ def all_basic_run_db(self, account_type, exchange=None):
"""
yield self.get_run_db()
exchange = exchange or self.run_dbs_identifier.context.exchange_name
for db in self.exchange_dbs[exchange].all_basic_run_db(account_type):
yield db
yield from self.exchange_dbs[exchange].all_basic_run_db(account_type)

def get_db(self, db_identifier):
"""
Expand Down
1 change: 1 addition & 0 deletions octobot_commons/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ class SignalsAttrs(enum.Enum):
class InitializationEventExchangeTopics(enum.Enum):
POSITIONS = "positions"
BALANCE = "balance"
PROFITABILITY = "profitability"
ORDERS = "orders"
TRADES = "trades"
CONTRACTS = "contracts"
Expand Down
Loading