honeymaker 0.7.3 → 0.7.4
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 +4 -4
- data/README.md +1 -1
- data/lib/honeymaker/clients/bitget.rb +1 -1
- data/lib/honeymaker/version.rb +1 -1
- data/test/honeymaker/clients/bitget_client_test.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dab41088f0ca358c6bb6d507339bc02ef10ec52a1ddaf7b87c3228abc7e6e626
|
|
4
|
+
data.tar.gz: 040666174ca1cec541e218243573b61bad1ca3616acbbc47c74adeb931554d1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d737bb0b41ea2510ddb39e27a6ddf7ac89032cf8262c71f6b02e46933f67e075de5d42863f88158b98fd3a8164a6088fd62607a8fbe80151aef10f741d4b93a7
|
|
7
|
+
data.tar.gz: 7e00c0658eb29f2bd794f9dc059acd94aa9b305bb1026987c552b3186db7336d7e8948d20bd820489d557b2d7d9bb571925eddbe6e0a635cc6034d5457ce7572
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://github.com/deltabadger/honeymaker/actions)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
|
|
7
|
-
Ruby clients for cryptocurrency exchange APIs
|
|
7
|
+
Ruby clients for cryptocurrency exchange APIs used by [Deltabadger](https://github.com/deltabadger/deltabadger).
|
|
8
8
|
|
|
9
9
|
## Supported Exchanges
|
|
10
10
|
|
|
@@ -67,7 +67,7 @@ module Honeymaker
|
|
|
67
67
|
return Result::Failure.new("Bitget API error") unless result.data["code"] == "00000"
|
|
68
68
|
|
|
69
69
|
order_id = result.data.dig("data", "orderId")
|
|
70
|
-
Result::Success.new({ order_id: order_id, raw: result.data })
|
|
70
|
+
Result::Success.new({ order_id: "#{symbol}-#{order_id}", raw: result.data })
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def get_order(order_id: nil, client_oid: nil)
|
data/lib/honeymaker/version.rb
CHANGED
|
@@ -39,14 +39,14 @@ class Honeymaker::Clients::BitgetTest < Minitest::Test
|
|
|
39
39
|
stub_connection(:post, { "code" => "00000", "data" => { "orderId" => "123" } })
|
|
40
40
|
result = @client.place_order(symbol: "BTCUSDT", side: "buy", order_type: "market", size: "0.001")
|
|
41
41
|
assert result.success?
|
|
42
|
-
assert_equal "123", result.data[:order_id]
|
|
42
|
+
assert_equal "BTCUSDT-123", result.data[:order_id]
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def test_place_order_with_quote_size
|
|
46
46
|
stub_connection(:post, { "code" => "00000", "data" => { "orderId" => "456" } })
|
|
47
47
|
result = @client.place_order(symbol: "BTCUSDT", side: "buy", order_type: "market", quote_size: "100")
|
|
48
48
|
assert result.success?
|
|
49
|
-
assert_equal "456", result.data[:order_id]
|
|
49
|
+
assert_equal "BTCUSDT-456", result.data[:order_id]
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
def test_get_order
|