Skip to content

Commit

Permalink
Websocket API can now support SBE on Spot Testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
adderall-prozac committed Feb 8, 2024
1 parent 08b59e0 commit e798cba
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
# CHANGELOG for Binance's API (2023-12-08)
# CHANGELOG for Binance's API (2024-02-08)

## 2024-02-07

The SPOT WebSocket API can now support SBE on [SPOT Testnet](https://testnet.binance.vision).

The SBE schema has been updated with WebSocket API metadata without incrementing either `schemaId` or `version`.

Users using only the REST API may continue to use the SBE schema with git commit hash [`128b94b2591944a536ae427626b795000100cf1d`](https://github.com/binance/binance-spot-api-docs/blob/128b94b2591944a536ae427626b795000100cf1d/sbe/schemas/spot_1_0.xml) or update to the newly-committed SBE schema.

Users who want to use the WebSocket API must use the [newly-committed SBE schema](https://github.com/binance/binance-spot-api-docs/blob/becd4d44a09d94821d2dc761ba9197aae8b495c3/sbe/schemas/spot_1_0.xml).

The [FAQ](./faqs/sbe_faq.md) for SBE has been updated.

---

## 2023-12-08

Expand Down
15 changes: 14 additions & 1 deletion CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# 更新日志 (2023-12-08)
# 更新日志 (2024-02-08)

## 2024-02-07

现货的 WebSocket API 现在在[测试网](https://testnet.binance.vision)上支持简单二进制编码(SBE)。

SBE 模式已经更新了 WebSocket API 元数据,但并没有增加 `schemaId` 或者 `version`

* 仅使用 REST API 的用户可以继续使用带有 git 提交哈希[`128b94b2591944a536ae427626b795000100cf1d`](https://github.com/binance/binance-spot-api-docs/commit/128b94b2591944a536ae427626b795000100cf1d/sbe/schemas/spot_1_0.xml)的SBE模式,或者更新到新提交的SBE模式。

* 希望使用 WebSocket API 的用户,需要更新到最新的 SBE 模式,git 提交哈希 [`becd4d44a09d94821d2dc761ba9197aae8b495c3`](https://github.com/binance/binance-spot-api-docs/blob/becd4d44a09d94821d2dc761ba9197aae8b495c3/sbe/schemas/spot_1_0.xml)

SBE 的 [FAQ](./faqs/sbe_faq_cn.md) 已经更新。

---

## 2023-12-08

Expand Down
8 changes: 4 additions & 4 deletions errors.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Error codes for Binance (2023-12-08)
# Error codes for Binance (2024-02-08)
Errors consist of two parts: an error code and a message. Codes are universal,
but messages can vary. Here is the error JSON payload:
```javascript
Expand Down Expand Up @@ -138,9 +138,6 @@ Errors consist of two parts: an error code and a message. Codes are universal,
* Invalid JSON Request
* JSON sent for parameter '%s' is not valid

#### -1139 INVALID_TICKER_TYPE
* Invalid ticker type.

#### -1145 INVALID_CANCEL_RESTRICTIONS
* `cancelRestrictions` has to be either `ONLY_NEW` or `ONLY_PARTIALLY_FILLED`.

Expand All @@ -153,6 +150,9 @@ Errors consist of two parts: an error code and a message. Codes are universal,
#### -1153 UNSUPPORTED_SCHEMA_ID
* Unsupported SBE schema ID or version specified in the `X-MBX-SBE` header.

#### -1155 SBE_DISABLED
* SBE is not enabled.

#### -2010 NEW_ORDER_REJECTED
* NEW_ORDER_REJECTED

Expand Down
8 changes: 4 additions & 4 deletions errors_CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 错误代码汇总 (2023-12-08)
# 错误代码汇总 (2024-02-08)
币安Rest接口(包括wapi)返回的错误包含两部分,错误码与错误信息. 错误码是大类,一个错误码可能对应多个不同的错误信息。
以下是一个完整错误码实例
```javascript
Expand Down Expand Up @@ -137,9 +137,6 @@
* Invalid JSON Request
* JSON sent for parameter '%s' is not valid

#### -1139 无效的Ticker类型
* Invalid ticker type.

#### -1145 无效的取消限制
* `cancelRestrictions` has to be either `ONLY_NEW` or `ONLY_PARTIALLY_FILLED`.

Expand All @@ -152,6 +149,9 @@
#### -1153 不支持的SCHEMA_ID
* Unsupported SBE schema ID or version specified in the `X-MBX-SBE` header.

#### -1155 SBE 没有开启
* SBE is not enabled.

#### -2010 新订单被拒绝
* NEW_ORDER_REJECTED

Expand Down

0 comments on commit e798cba

Please sign in to comment.