Skip to content

Commit

Permalink
Fixed typos in the README file
Browse files Browse the repository at this point in the history
  • Loading branch information
felipet committed Feb 14, 2025
1 parent 287b228 commit 62d8be3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Rust Finance Data Harvest Library

[![License](https://img.shields.io/github/license/felipet/lacoctelera_backend?style=flat-square)](https://github.com/felipet/lacoctelera_backend/blob/main/LICENSE)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/felipet/lacoctelera_backend/rust_main.yml?style=flat-square&label=CI%20status)
[![License](https://img.shields.io/github/license/felipet/lacoctelera_backend?style=flat-square)](https://github.com/felipet/data_harvest/blob/main/LICENSE)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/felipet/data_harvest/rust.yml?style=flat-square&label=CI%20status)

This library includes several modules that extract finance and stock related data from web sites. The main purpose
of the library is to retrieve useful data for financial quantitative analysis, and organise it into a data base.
Expand Down
8 changes: 6 additions & 2 deletions src/feeders/ibex_short_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use finance_ibex::IbexCompany;
use sqlx::{prelude::FromRow, types::Uuid, Executor, PgPool};
use std::error::Error;
use std::sync::Arc;
use tracing::{debug, error, info, warn, instrument};
use tracing::{debug, error, info, instrument, warn};

/// Data provider for short positions against stocks that belong to the Ibex35.
///
Expand Down Expand Up @@ -199,7 +199,11 @@ impl<'a> IbexShortFeeder<'a> {
// First, let's get a list of the active short positions for the company which are already registered
// in the DB.
let stored_position = self.active_positions(company.ticker()).await?;
debug!("Stored positions for {}: {:?}", company.ticker(), stored_position);
debug!(
"Stored positions for {}: {:?}",
company.ticker(),
stored_position
);

// Check whether any new position was already present in the DB.
for new_position in new_positions.positions {
Expand Down
9 changes: 6 additions & 3 deletions src/web_scrappers/cnmv_scrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use finance_api::Company;
use finance_ibex::IbexCompany;
use reqwest;
use scraper::{Html, Selector};
use tracing::{error, instrument, trace, debug};
use tracing::{debug, error, instrument, trace};

/// Handler to extract data from the CNMV web page.
///
Expand Down Expand Up @@ -96,7 +96,7 @@ impl CnmvProvider {
EndpointSel::ShortEP => {
trace!("Collecting data for the short position endpoint");
&self.short_ext[..]
},
}
};

// Retrieve the companie's ISIN.
Expand Down Expand Up @@ -205,7 +205,10 @@ impl CnmvProvider {
}
};

debug!("A valid short position was detected: {owner} - {weight} - {open_date} - {}", stock.ticker());
debug!(
"A valid short position was detected: {owner} - {weight} - {open_date} - {}",
stock.ticker()
);

positions.push(ShortPosition {
owner,
Expand Down

0 comments on commit 62d8be3

Please sign in to comment.