Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikiw/crypto-trade-system
Backtesting crypto trade system written in Rust.
https://github.com/mikiw/crypto-trade-system
bitcoin ethereum rust rust-lang trade trade-system tradesystem trading-algorithms trading-strategies
Last synced: 5 days ago
JSON representation
Backtesting crypto trade system written in Rust.
- Host: GitHub
- URL: https://github.com/mikiw/crypto-trade-system
- Owner: mikiw
- Created: 2022-06-03T10:13:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-30T12:56:58.000Z (over 1 year ago)
- Last Synced: 2024-11-12T00:17:40.883Z (2 months ago)
- Topics: bitcoin, ethereum, rust, rust-lang, trade, trade-system, tradesystem, trading-algorithms, trading-strategies
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EthInvestingCalculator
ETH income calculator in Rust is based on the assumption that an income transaction is a buy transaction at that time on the market and an outcome transaction is a sell.To run it we can simply change the wallet address and add api_key:
```
let api_key = "TNYD******************************";
let address = "0xc55dbe3cd4afa41e8c24283c5be8d2481e2b79c1";
```and type:
```
cd .\eth_investing_calculator\
cargo run
```Result will be:
```
[1641801643] sell value in usd: 50.19578
[1640947695] sell value in usd: 122.71446
sum_buy_value: 1.3889345
sum_buy_usd: 3068.7747sum_sell_value: 1.6399325
sum_sell_usd: 3467.0566Income in USD: 398.28198
```