honeymaker 0.9.6 → 0.9.7
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: 632a9bc63075c21713722ff28baece102104084e83a6b20675c7a0604c0a49e6
|
|
4
|
+
data.tar.gz: 4d2d63654b5fedd397945f72dd21eca95ca2762b1f658f73cf80b02cb1a7285b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a5f15c7d5163ef0013998fa7cccb81aa661018ff65561d7d55e606c7e70969e4172fca70ec3cfdc1529ad03c4637c69b6bff2eefaa9586627710aefe15710a1
|
|
7
|
+
data.tar.gz: 15b53a301be6c936a90d3ac96c505ebe9946448783d07fbfb4832d5e294e6ca2cd44bd726e86f7fa34eda0074b1febf24142c2206f0e743d3edda9609e091f26
|
|
@@ -238,8 +238,8 @@ module Honeymaker
|
|
|
238
238
|
def parse_order_status(status)
|
|
239
239
|
case status
|
|
240
240
|
when "init", "new" then :unknown
|
|
241
|
-
when "
|
|
242
|
-
when "
|
|
241
|
+
when "partially_filled", "live" then :open
|
|
242
|
+
when "filled" then :closed
|
|
243
243
|
when "cancelled" then :cancelled
|
|
244
244
|
else :unknown
|
|
245
245
|
end
|
data/lib/honeymaker/version.rb
CHANGED
|
@@ -51,7 +51,7 @@ class Honeymaker::Clients::BitgetTest < Minitest::Test
|
|
|
51
51
|
|
|
52
52
|
def test_get_order
|
|
53
53
|
stub_connection(:get, { "code" => "00000", "data" => [{
|
|
54
|
-
"orderId" => "123", "orderType" => "market", "side" => "buy", "status" => "
|
|
54
|
+
"orderId" => "123", "orderType" => "market", "side" => "buy", "status" => "filled",
|
|
55
55
|
"priceAvg" => "50000", "size" => "0.001", "baseVolume" => "0.001", "quoteVolume" => "50"
|
|
56
56
|
}] })
|
|
57
57
|
result = @client.get_order(order_id: "123")
|