Skip to content

Commit

Permalink
v0.0.56
Browse files Browse the repository at this point in the history
  • Loading branch information
vivalaakam committed Oct 6, 2022
1 parent def19a6 commit 5452559
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "new_york_calculate_core"
version = "0.0.55"
version = "0.0.56"
authors = ["Andrey Makarov <viva.la.akam@gmail.com>"]
edition = "2018"
description = "Library for calculation some things"
Expand Down
3 changes: 1 addition & 2 deletions examples/calculate_agent_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ async fn main() {
agents.push(agent);
}

let mut calculate_iter =
CalculateAgentIter::new(&candles, 0.5, 1f64, 0.0001f64, 288, &mut agents);
let mut calculate_iter = CalculateAgentIter::new(&candles, 0.5, 1f64, 0.0001f64, 288, agents);

let mut cont = Ok(());

Expand Down
4 changes: 2 additions & 2 deletions node/Cargo.lock

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

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "new_york_calculate"
version = "0.0.55"
version = "0.0.56"
authors = ["Andrey Makarov"]
license = "ISC"
edition = "2018"
Expand Down
4 changes: 2 additions & 2 deletions node/package-lock.json

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

2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new_york_calculate",
"version": "0.0.55",
"version": "0.0.56",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions python/Cargo.lock

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

2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "new_york_calculate"
version = "0.0.55"
version = "0.0.56"
authors = ["Andrey Makarov <viva.la.akam@gmail.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
from setuptools_rust import RustExtension

VERSION = "0.0.55"
VERSION = "0.0.56"
DESCRIPTION = "My first Python package"
LONG_DESCRIPTION = "My first Python package with a slightly longer description"

Expand Down
4 changes: 2 additions & 2 deletions src/calculate_agent_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct CalculateAgentIter<'a, T: CalculateActivate> {
sell_orders: Vec<Order>,
pointer: usize,
check_period: usize,
agents: &'a mut Vec<CalculateAgent<T>>,
agents: Vec<CalculateAgent<T>>,
}

impl<'a, T> CalculateAgentIter<'a, T>
Expand All @@ -22,7 +22,7 @@ where
step_lot: f64,
step_price: f64,
check_period: usize,
agents: &'a mut Vec<CalculateAgent<T>>,
agents: Vec<CalculateAgent<T>>,
) -> Self {
CalculateAgentIter {
candles,
Expand Down

0 comments on commit 5452559

Please sign in to comment.