binance-connector-ruby 1.5.2 → 1.6.0
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/CHANGELOG.md +52 -0
- data/lib/binance/spot/c2c.rb +2 -2
- data/lib/binance/spot/convert.rb +2 -2
- data/lib/binance/spot/fiat.rb +3 -3
- data/lib/binance/spot/loan.rb +2 -2
- data/lib/binance/spot/margin.rb +34 -246
- data/lib/binance/spot/market.rb +14 -14
- data/lib/binance/spot/mining.rb +13 -13
- data/lib/binance/spot/simple_earn.rb +24 -24
- data/lib/binance/spot/stream.rb +1 -1
- data/lib/binance/spot/subaccount.rb +39 -59
- data/lib/binance/spot/trade.rb +17 -17
- data/lib/binance/spot/wallet.rb +22 -22
- data/lib/binance/spot/websocket.rb +11 -11
- data/lib/binance/spot.rb +1 -5
- data/lib/binance/version.rb +1 -1
- metadata +6 -8
- data/lib/binance/spot/blvt.rb +0 -104
- data/lib/binance/spot/futures.rb +0 -357
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cd14ba018ca28c3101c382fcc105fe35cac51e04acf23a3aab69bd3bdb47b87
|
4
|
+
data.tar.gz: d163b9b4ad26556f6dfb4ae8761a7f4396c6ad9045c9fbf11be3a844b14121ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e09151948a6c51d6554455ac5b7c496601a55faf95bf8f57aef34ec447ac80ec393a0d7097b212c5e3722a2d7d37311b537b99b57a86fe56bd0461e63bf0c44
|
7
|
+
data.tar.gz: 6b07bf72b7cbab7fe9a255070d94fa28233c9d31df9d3f831f674b67a40d6bc7e76b3d7dfa2c1deab146fd4e6013463e807b0f184ad54ec1aa5533e510b3d0c5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,57 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.6.0 - 2024-10-02
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
- Updated endpoint `/sapi/v1/sub-account/subAccountApi/ipRestriction` to `/sapi/v2/sub-account/subAccountApi/ipRestriction`
|
7
|
+
- Update dependencies
|
8
|
+
|
9
|
+
### Removed
|
10
|
+
- Deprecated margin endpoints:
|
11
|
+
- `POST /sapi/v1/margin/transfer`
|
12
|
+
- `POST /sapi/v1/margin/isolated/transfer`
|
13
|
+
- `POST /sapi/v1/margin/loan`
|
14
|
+
- `POST /sapi/v1/margin/repay`
|
15
|
+
- `GET /sapi/v1/margin/isolated/transfer`
|
16
|
+
- `GET /sapi/v1/margin/asset`
|
17
|
+
- `GET /sapi/v1/margin/pair`
|
18
|
+
- `GET /sapi/v1/margin/isolated/pair`
|
19
|
+
- `GET /sapi/v1/margin/loan`
|
20
|
+
- `GET /sapi/v1/margin/repay`
|
21
|
+
- `GET /sapi/v1/margin/dribblet`
|
22
|
+
- `GET /sapi/v1/margin/dust`
|
23
|
+
- `POST /sapi/v1/margin/dust`
|
24
|
+
|
25
|
+
- Deprecated SubAccount endpoint: `POST /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList`
|
26
|
+
|
27
|
+
- Deprecated Futures endpoints:
|
28
|
+
- `GET /sapi/v1/futures/loan/interestHistory`
|
29
|
+
- `GET /sapi/v1/futures/loan/collateralRepayResult`
|
30
|
+
- `POST /sapi/v1/futures/loan/collateralRepay`
|
31
|
+
- `GET /sapi/v1/futures/loan/collateralRepay`
|
32
|
+
- `GET /sapi/v1/futures/loan/collateralRepayLimit`
|
33
|
+
- `GET /sapi/v1/futures/loan/liquidationHistory`
|
34
|
+
- `GET /sapi/v1/futures/loan/adjustCollateral/history`
|
35
|
+
- `POST /sapi/v2/futures/loan/adjustCollateral`
|
36
|
+
- `GET /sapi/v2/futures/loan/calcMaxAdjustAmount`
|
37
|
+
- `GET /sapi/v2/futures/loan/calcAdjustLevel`
|
38
|
+
- `GET /sapi/v2/futures/loan/configs`
|
39
|
+
- `GET /sapi/v2/futures/loan/wallet`
|
40
|
+
- `GET /sapi/v1/futures/loan/repay/history`
|
41
|
+
- `POST /sapi/v1/futures/loan/repay`
|
42
|
+
- `GET /sapi/v1/futures/loan/borrow/history`
|
43
|
+
- `POST /sapi/v1/futures/loan/borrow`
|
44
|
+
- `GET /sapi/v1/futures/transfer`
|
45
|
+
- `POST /sapi/v1/futures/transfer`
|
46
|
+
|
47
|
+
- BLVT endpoints:
|
48
|
+
- `GET /sapi/v1/blvt/tokenInfo`
|
49
|
+
- `POST /sapi/v1/blvt/subscribe`
|
50
|
+
- `GET /sapi/v1/blvt/subscribe/record`
|
51
|
+
- `POST /sapi/v1/blvt/redeem`
|
52
|
+
- `GET /sapi/v1/blvt/redeem/record`
|
53
|
+
- `GET /sapi/v1/blvt/userLimit`
|
54
|
+
|
3
55
|
## 1.5.2 - 2024-07-23
|
4
56
|
|
5
57
|
### Changed
|
data/lib/binance/spot/c2c.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Binance
|
4
4
|
class Spot
|
5
5
|
# C2C endpoints
|
6
|
-
# @see https://binance
|
6
|
+
# @see https://developers.binance.com/docs/c2c/Introduction
|
7
7
|
module C2C
|
8
8
|
# Get C2C Trade History (USER_DATA)
|
9
9
|
#
|
@@ -16,7 +16,7 @@ module Binance
|
|
16
16
|
# @option kwargs [Integer] :rows
|
17
17
|
# @option kwargs [Integer] :recvWindow
|
18
18
|
# @option kwargs [Integer] :timestamp
|
19
|
-
# @see https://binance
|
19
|
+
# @see https://developers.binance.com/docs/c2c/rest-api/Get-C2C-Trade-History
|
20
20
|
def c2c_trade_history(tradeType:, **kwargs)
|
21
21
|
Binance::Utils::Validation.require_param('tradeType', tradeType)
|
22
22
|
|
data/lib/binance/spot/convert.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Binance
|
4
4
|
class Spot
|
5
5
|
# Convert endpoints
|
6
|
-
# @see https://binance
|
6
|
+
# @see https://developers.binance.com/docs/convert/Introduction
|
7
7
|
module Convert
|
8
8
|
# Get Convert Trade History (USER_DATA)
|
9
9
|
#
|
@@ -14,7 +14,7 @@ module Binance
|
|
14
14
|
# @param kwargs [Hash]
|
15
15
|
# @option kwargs [Integer] :limit default 100, max 1000
|
16
16
|
# @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
|
17
|
-
# @see https://binance
|
17
|
+
# @see https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History#http-request
|
18
18
|
def convert_trade_flow(startTime:, endTime:, **kwargs)
|
19
19
|
Binance::Utils::Validation.require_param('startTime', startTime)
|
20
20
|
Binance::Utils::Validation.require_param('endTime', endTime)
|
data/lib/binance/spot/fiat.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Binance
|
4
4
|
class Spot
|
5
5
|
# Fiat endpoints
|
6
|
-
# @see https://binance
|
6
|
+
# @see https://developers.binance.com/docs/fiat/Introduction
|
7
7
|
module Fiat
|
8
8
|
# Get Fiat Deposit/Withdraw History (USER_DATA)
|
9
9
|
#
|
@@ -16,7 +16,7 @@ module Binance
|
|
16
16
|
# @option kwargs [Integer] :page default 1
|
17
17
|
# @option kwargs [Integer] :rows default 100, max 500
|
18
18
|
# @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
|
19
|
-
# @see https://binance
|
19
|
+
# @see https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
|
20
20
|
def fiat_deposit_withdraw_history(transactionType:, **kwargs)
|
21
21
|
Binance::Utils::Validation.require_param('transactionType', transactionType)
|
22
22
|
|
@@ -36,7 +36,7 @@ module Binance
|
|
36
36
|
# @option kwargs [Integer] :page default 1
|
37
37
|
# @option kwargs [Integer] :rows default 100, max 500
|
38
38
|
# @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
|
39
|
-
# @see https://binance
|
39
|
+
# @see https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History
|
40
40
|
def fiat_payment_history(transactionType:, **kwargs)
|
41
41
|
Binance::Utils::Validation.require_param('transactionType', transactionType)
|
42
42
|
|
data/lib/binance/spot/loan.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Binance
|
4
4
|
class Spot
|
5
5
|
# all loan endpoints
|
6
|
-
# @see https://binance
|
6
|
+
# @see https://developers.binance.com/docs/crypto_loan/Introduction
|
7
7
|
module Loan
|
8
8
|
# Get Crypto Loans Income History (USER_DATA)
|
9
9
|
#
|
@@ -15,7 +15,7 @@ module Binance
|
|
15
15
|
# @option kwargs [Integer] :endTime
|
16
16
|
# @option kwargs [Integer] :limit default 20, max 100
|
17
17
|
# @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
|
18
|
-
# @see https://binance
|
18
|
+
# @see https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Crypto-Loans-Income-History
|
19
19
|
def get_loan_history(asset:, **kwargs)
|
20
20
|
Binance::Utils::Validation.require_param('asset', asset)
|
21
21
|
|