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: 50e3e2d9451d404977937fddc4d265c25da9ca8ed848ba6d6c008f24e8e129c9
4
- data.tar.gz: a949bcc4a042ce6076986ae76c19fdb4a4bea583f0934fd6e1a5548e492d8898
3
+ metadata.gz: 486ed9c66cbdbb6ed5d7b0af03e9735c96ee848b922cacd9c89f950bd439c388
4
+ data.tar.gz: 561770ac9c32e64a2e1483fafab052d7175b3b51b655083ef70f6227804fb4a6
5
5
  SHA512:
6
- metadata.gz: 9489aa1616d24f9d17b37c603b468426b0354d87aa27a16970165919859565a35195aef1a665348e6e1d24e3ca636eb23901d34c002a2a85f932a99d6a7335b1
7
- data.tar.gz: 70f1ebd03b468460c76c28bd5fcc69b975d64562790cef14075e13236e647d2132294a13e2bf3267b822526c6ae7d9905e7c5d18bfe28a0ea4e5548a169e4daa
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: nil,
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Honeymaker
4
- VERSION = "0.9.11"
4
+ VERSION = "0.9.12"
5
5
  end
@@ -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
- assert_nil ticker[:minimum_quote_size]
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeymaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deltabadger