This is getting better and better

This commit is contained in:
2023-07-12 15:15:25 +02:00
parent 8d5ad7c62d
commit eec9c82a83
16 changed files with 17 additions and 14 deletions
+3 -1
View File
@@ -17,7 +17,7 @@ class Price_Believe_Distribiute_Agent(Base_Distribution_Agent):
self.lr_moment={i: 0 for i in range(len(self.exchanges))}
self.open_orders = {i: [] for i in range(len(self.exchanges))}
self.open_qty = 0
self.beta=0.6
self.beta=0.8
self.lp_threshold=0.05
self.hp_threshold=0.80
@@ -29,6 +29,8 @@ class Price_Believe_Distribiute_Agent(Base_Distribution_Agent):
cx_id = self.select_best_cx()
price = round(self.price_believe[cx_id],2)
if price==30.0:
print("Ple")
if price < self.min_price:
price = self.min_price
order = self.distribute_resource(