changedInput schema / $schema
Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
removedInput schema / properties / amount / description
Removed value: -"调整金额"
removedInput schema / properties / positionSide / description
Removed value: -"持仓方向(双向持仓模式时需指定)"
changedInput schema / properties / positionSide / enum
Previous value: -[
- "BOTH",
- "LONG",
- "SHORT"
-]New value: +[
+ "LONG",
+ "SHORT"
+]
removedInput schema / properties / symbol / description
Removed value: -"交易对符号 如 BTCUSDT"
addedInput schema / properties / type / anyOf
Added value: +[
+ {
+ "const": 1,
+ "type": "number"
+ },
+ {
+ "const": 2,
+ "type": "number"
+ }
+]
removedInput schema / properties / type / description
Removed value: -"1=增加保证金 / 0=减少保证金"
removedInput schema / properties / type / enum
Removed value: -[
- "0",
- "1"
-]
removedInput schema / properties / type / type
Removed value: -"string"
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "type": "number"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "const": 1,
+ "type": "number"
+ },
+ {
+ "const": 2,
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "amount",
+ "type"
+ ],
+ "type": "object"
+}