Skip to content

Commit

Permalink
Merge pull request #17 from IvanildoBarauna/feat-UpdateApiToDataframe
Browse files Browse the repository at this point in the history
feat: Update api-to-dataframe
  • Loading branch information
IvanildoBarauna authored Jul 9, 2024
2 parents 979a226 + c04ceab commit 2f79762
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
21 changes: 16 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "currency-quote"
version = "3.0.1"
version = "3.0.2"
description = "Complete solution for extracting currency pair quotes data. With comprehensive testing, parameter validation, flexible configuration management, Hexagonal Architecture, CI/CD pipelines, code quality tools, and detailed documentation."
authors = ["IvanildoBarauna <[email protected]>"]
readme = "README.md"
Expand Down Expand Up @@ -29,7 +29,7 @@ include = ["currency_quote*"]

[tool.poetry.dependencies]
python = "^3.9"
api-to-dataframe = "^1.2.3"
api-to-dataframe = "^1.3.1"

[tool.poetry.group.dev.dependencies]
coverage = "^7.5.4"
Expand Down
4 changes: 2 additions & 2 deletions src/currency_quote/adapters/outbound/currency_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, currency_codes: str):
def get_last_quote(self) -> dict:
url = f"{API.ENDPOINT_LAST_COTATION}{self.currency_codes}"
client = ClientBuilder(
endpoint=url, retry_strategy=RetryStrategies.ExponentialRetryStrategy
endpoint=url, retry_strategy=RetryStrategies.EXPONENTIAL_RETRY_STRATEGY
)

response = client.get_api_data()
Expand All @@ -34,7 +34,7 @@ def get_history_quote(self, reference_date: int) -> dict:
)

client = ClientBuilder(
endpoint=url, retry_strategy=RetryStrategies.ExponentialRetryStrategy
endpoint=url, retry_strategy=RetryStrategies.EXPONENTIAL_RETRY_STRATEGY
)

response = client.get_api_data()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, currency_quote: CurrencyQuote) -> None:
def validate_currency_code(self) -> list:
client = ClientBuilder(
endpoint=API.ENDPOINT_AVALIABLE_PARITIES,
retry_strategy=RetryStrategies.LinearRetryStrategy,
retry_strategy=RetryStrategies.LINEAR_RETRY_STRATEGY,
)

valid_list = client.get_api_data()
Expand Down

0 comments on commit 2f79762

Please sign in to comment.