cryptum 0.0.367 → 0.0.368

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6798524e1b458d4d99353b126d43a5d64b9aa94e42829c8322f6c740bc5984c
4
- data.tar.gz: 2609c6ec391ec5eb1e77b6c934c4e0a8b598cac9f0d0da3f1a37755085d9d121
3
+ metadata.gz: e6b1a1f3adfd5488b1f51f2d288255b663cfd9bf6c516e77cec6e2d49c77da69
4
+ data.tar.gz: 14df82d2294151953337624cbce1bfffa6ad0af7ebc120625013d5c6c323713d
5
5
  SHA512:
6
- metadata.gz: 709f134f6813a74357d37779a51224ed5fc7b2ad2af4626fec4bdadbd186c899aea6a73a4517e077865bae85070e620eb306e12d6967615773d59d58573dc39c
7
- data.tar.gz: 93941d719671c62245157c6487a3031ebfd92da00ccc9047b79955d21b63f048365da674c0ba160876776e6d6f0941008b9741a6ceaf7ef10aa14f432c9f6744
6
+ metadata.gz: 12ad2d6e7401156dd5b02c9c928ea743ca608249c9dc631bda47910a786c9864abbbdeba762ad693865b50f16a3c316fc41902af3105147822d9906d2822cdac
7
+ data.tar.gz: 19173b3f98cbe0a063248aa0a7a3f8906dd85893e3fde9372e6529f53de5dc4ffe6ad89fc5c1aa1a9576a89c7c8ffb3e12f8667656f031c05bbde4c79cb4b997
@@ -63,23 +63,17 @@ module Cryptum
63
63
  # BE EXTREMELY CAREFUL CHANGING THIS VALUE AS IT DICTATES
64
64
  # THE TARGET PRICE AND SUBSEQUENT TIME IT TAKES FOR AN OPEN
65
65
  # SELL ORDER TO BE TRIGGERED!!! SHOULD NEVER BE > 1
66
- # default_net_tpm = 1.0
67
- maker_rate = 0.004
68
- taker_rate = 0.006
69
-
70
66
  gross_tpm = bot_conf[:target_profit_margin_percent].to_f
71
67
 
72
- # Refactor TPM to be 1.0 > than fee tier,
73
- # particularly as fee tier goes up or down
74
68
  fees = event_history.order_book[:fees]
69
+ maker_rate = 0.004
75
70
  maker_rate = fees[:maker_fee_rate].to_f unless fees.empty?
76
- # maker_fee = format('%0.2f', maker_rate * 100)
77
71
 
72
+ taker_rate = 0.006
78
73
  taker_rate = fees[:taker_fee_rate].to_f unless fees.empty?
79
- # taker_fee = format('%0.2f', taker_rate * 100)
80
74
 
81
75
  # Absolute Bare Minimum TPM (Promotes Volume & Reduces Fees)
82
- default_net_tpm = maker_rate + taker_rate + 0.001
76
+ default_net_tpm = 1.0 + (maker_rate + taker_rate)
83
77
 
84
78
  # Set default_net_tpm if AI is true in bot_conf.
85
79
  low_24h = event_history.order_book[:low_24h].to_f
@@ -130,7 +124,7 @@ module Cryptum
130
124
 
131
125
  min_gross_tpm = format(
132
126
  '%0.2f',
133
- (maker_rate.to_f + taker_rate.to_f) + default_net_tpm
127
+ default_net_tpm
134
128
  )
135
129
 
136
130
  if min_gross_tpm != gross_tpm.to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.367'
4
+ VERSION = '0.0.368'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.367
4
+ version: 0.0.368
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.