honeymaker 0.9.11 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 486ed9c66cbdbb6ed5d7b0af03e9735c96ee848b922cacd9c89f950bd439c388
|
|
4
|
+
data.tar.gz: 561770ac9c32e64a2e1483fafab052d7175b3b51b655083ef70f6227804fb4a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 955a0992f60da65640083364576f8dc6b7cf4a918815e12e40e3cde813628c267942e473c96b8846b404786dba0705ad7ea11bd895e8907341fc7e18905f691e
|
|
7
|
+
data.tar.gz: 12c6329f2c4f09282544c9188e22efabb4666311816d7a27d396ef5eb7b1c26f9a8b6b9799a59bef33ea69406f2c125d82e544c9be8c4f7d351ba129d6d7c930
|
|
@@ -5,6 +5,11 @@ module Honeymaker
|
|
|
5
5
|
class Hyperliquid < Exchange
|
|
6
6
|
BASE_URL = "https://api.hyperliquid.xyz"
|
|
7
7
|
|
|
8
|
+
# Hyperliquid enforces a hard 10-USDC minimum order value on every spot pair (spotMeta exposes
|
|
9
|
+
# no per-token base floor). Surfaced as minimum_quote_size so consumers skip/reject sub-10
|
|
10
|
+
# orders up front instead of having the exchange reject them.
|
|
11
|
+
MINIMUM_QUOTE_SIZE = 10
|
|
12
|
+
|
|
8
13
|
def get_tickers_info
|
|
9
14
|
with_rescue do
|
|
10
15
|
response = connection.post("/info") do |req|
|
|
@@ -25,7 +30,7 @@ module Honeymaker
|
|
|
25
30
|
base: base_token["name"],
|
|
26
31
|
quote: quote_token["name"],
|
|
27
32
|
minimum_base_size: nil,
|
|
28
|
-
minimum_quote_size:
|
|
33
|
+
minimum_quote_size: MINIMUM_QUOTE_SIZE,
|
|
29
34
|
maximum_base_size: nil,
|
|
30
35
|
maximum_quote_size: nil,
|
|
31
36
|
base_decimals: base_token["szDecimals"] || 0,
|
data/lib/honeymaker/version.rb
CHANGED
|
@@ -22,8 +22,8 @@ class Honeymaker::Exchanges::HyperliquidTest < Minitest::Test
|
|
|
22
22
|
assert_equal "PURR/USDC", ticker[:ticker]
|
|
23
23
|
assert_equal "PURR", ticker[:base]
|
|
24
24
|
assert_equal "USDC", ticker[:quote]
|
|
25
|
-
assert_nil ticker[:minimum_base_size]
|
|
26
|
-
|
|
25
|
+
assert_nil ticker[:minimum_base_size] # no per-token base floor in spotMeta
|
|
26
|
+
assert_equal 10, ticker[:minimum_quote_size] # Hyperliquid's hard 10-USDC spot order floor
|
|
27
27
|
assert_equal 2, ticker[:base_decimals]
|
|
28
28
|
assert_equal 2, ticker[:quote_decimals]
|
|
29
29
|
assert_equal 5, ticker[:price_decimals]
|