Skip to content

Commit dc83079

Browse files
committed
Update main result display
Signed-off-by: Herklos <[email protected]>
1 parent 748355a commit dc83079

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.1.1] - 2024-09-07
8+
### Fixed
9+
- main profit result display
10+
711
## [1.1.0] - 2024-09-07
812
### Added
913
- networkx dependencies

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="illustration.jpeg" width="250px" height="250px" alt="Triangular illustration">
33
</p>
44

5-
# Triangular Arbitrage by OctoBot [1.1.0](https://github.com/Drakkar-Software/Triangular-Arbitrage/blob/master/CHANGELOG.md)
5+
# Triangular Arbitrage by OctoBot [1.1.1](https://github.com/Drakkar-Software/Triangular-Arbitrage/blob/master/CHANGELOG.md)
66
[![PyPI](https://img.shields.io/pypi/v/OctoBot-Triangular-Arbitrage.svg)](https://pypi.python.org/pypi/OctoBot-Triangular-Arbitrage/)
77
[![Dockerhub](https://img.shields.io/docker/pulls/drakkarsoftware/octobot-triangular-arbitrage.svg?logo=docker)](https://hub.docker.com/r/drakkarsoftware/octobot-triangular-arbitrage)
88

main.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,29 @@
99
benchmark = os_util.parse_boolean_environment_var("IS_BENCHMARKING", "False")
1010
if benchmark:
1111
import time
12+
1213
s = time.perf_counter()
13-
14+
1415
# start arbitrage detection
1516
print("Scanning...")
1617
exchange_name = "binance"
1718
best_opportunities, best_profit = asyncio.run(detector.run_detection(exchange_name))
19+
20+
1821
def opportunity_symbol(opportunity):
1922
return symbols.parse_symbol(str(opportunity.symbol))
20-
23+
24+
2125
def get_order_side(opportunity: detector.ShortTicker):
2226
return 'buy' if opportunity.reversed else 'sell'
2327

28+
2429
if best_opportunities is not None:
2530
# Display arbitrage detection result
2631
print("-------------------------------------------")
27-
print(f"New {round(best_profit, 4)}% {exchange_name} opportunity:")
32+
print(f"New {round(best_profit - 1, 5) * 100}% {exchange_name} opportunity:")
2833
for i in range(3):
29-
print(f"{i+1}. {get_order_side(best_opportunities[i])} {str(best_opportunities[i].symbol)}")
34+
print(f"{i + 1}. {get_order_side(best_opportunities[i])} {str(best_opportunities[i].symbol)}")
3035
print("-------------------------------------------")
3136
else:
3237
print("No opportunity detected")

triangular_arbitrage/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
PROJECT_NAME = "OctoBot-Triangular-Arbitrage"
2-
VERSION = "1.1.0"
2+
VERSION = "1.1.1"

0 commit comments

Comments
 (0)