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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 284612993e19ef88694ff16ba01982a7d4231ffd83af273e8a075104225bb877
4
- data.tar.gz: fa0af71bb1e23bba1c632690d39e6c04e302a9066fcd14d1eb6f5a8bc29a3627
3
+ metadata.gz: dab41088f0ca358c6bb6d507339bc02ef10ec52a1ddaf7b87c3228abc7e6e626
4
+ data.tar.gz: 040666174ca1cec541e218243573b61bad1ca3616acbbc47c74adeb931554d1e
5
5
  SHA512:
6
- metadata.gz: 6252a819a733148ac38480a45a4d2230f5ad6bf27fe3bcb3eb9d8608955ef04841cd8d2982d68fd588de953a601ff78ca071e062c0ed80b1614547c3c1dbe0a4
7
- data.tar.gz: 1031a1ebc441b90a1af16cf169297dd79864d8faac67d38d899585a59f60532e357a7c18c9ea42b3c27352ff0dd024b7a78441c6047ab08cd819a195a3a6af21
6
+ metadata.gz: d737bb0b41ea2510ddb39e27a6ddf7ac89032cf8262c71f6b02e46933f67e075de5d42863f88158b98fd3a8164a6088fd62607a8fbe80151aef10f741d4b93a7
7
+ data.tar.gz: 7e00c0658eb29f2bd794f9dc059acd94aa9b305bb1026987c552b3186db7336d7e8948d20bd820489d557b2d7d9bb571925eddbe6e0a635cc6034d5457ce7572
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![CI](https://github.com/deltabadger/honeymaker/actions/workflows/test.yml/badge.svg)](https://github.com/deltabadger/honeymaker/actions)
5
5
  [![License](https://img.shields.io/github/license/deltabadger/honeymaker)](LICENSE)
6
6
 
7
- Ruby clients for cryptocurrency exchange APIs. Originally extracted from [Deltabadger](https://github.com/deltabadger/deltabadger).
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Honeymaker
4
- VERSION = "0.7.3"
4
+ VERSION = "0.7.4"
5
5
  end
@@ -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
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.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deltabadger