| name | string (AssetName) asset name, 大小写英文字母, 字段值要求唯一, 比如 "stETH", "WBTC" |
| onChainDecimal | string 必须 >= 0, 对应链上的 decimal() 方法返回, int32 |
| decimal | string 0 <= decimal <= onChainDecimal, int32 |
{- "name": "WBTC",
- "onChainDecimal": "18",
- "decimal": "3"
}{- "assetId": "3"
}| symbolId | string (SpotSymbolId) 值要求唯一, int32 |
| symbolName | string (SpotSymbolName) |
| baseAssetId | string (AssetId) 字段值要求唯一, int32 |
| quoteAssetId | string (AssetId) 字段值要求唯一, int32 |
| baseDecimal | string <int32> |
| priceDecimal | string <int32> |
| makerFeeDiscount | string <int32> [ 0 .. 100 ] in range [0, 100] |
| takerFeeDiscount | string <int32> [ 0 .. 100 ] in range [0, 100] |
| minTradingSize | string (SpotSymbolSize) |
| maxTradingSize | string (SpotSymbolSize) |
| maxPrice | string (SpotSymbolPrice) |
| status | string (SpotSymbolStatus) Enum: "ACTIVE" "PAUSED" |
{- "symbolId": "string",
- "symbolName": "ETHUSDT",
- "baseAssetId": "3",
- "quoteAssetId": "3",
- "baseDecimal": "string",
- "priceDecimal": "string",
- "makerFeeDiscount": "string",
- "takerFeeDiscount": "string",
- "minTradingSize": "42.24",
- "maxTradingSize": "42.24",
- "maxPrice": "1.23",
- "status": "ACTIVE"
}{- "symbolId": "string",
- "symbolName": "ETHUSDT",
- "baseAssetId": "3",
- "quoteAssetId": "3",
- "baseDecimal": "string",
- "priceDecimal": "string",
- "makerFeeDiscount": "string",
- "takerFeeDiscount": "string",
- "minTradingSize": "42.24",
- "maxTradingSize": "42.24",
- "maxPrice": "1.23",
- "status": "ACTIVE"
}| symbolId | string (SpotSymbolId) 值要求唯一, int32 |
| poolId | string <int32> (AmmPoolId) |
| minPrice | string (SpotSymbolPrice) |
| maxPrice | string (SpotSymbolPrice) |
| tickSpacing | string (SpotSymbolPrice) |
| operatorFeeRate | string (FeeRate) [ 0 .. 1 ] |
{- "symbolId": "string",
- "poolId": "12",
- "minPrice": "1.23",
- "maxPrice": "1.23",
- "tickSpacing": "1.23",
- "operatorFeeRate": "0.0001"
}{- "poolId": "12"
}| logicalChainId | string <int32> (ChainId) |
| chainId | string <int32> (ChainId) |
| vaultAddress | string (Address) |
| isEnable | boolean |
{- "logicalChainId": "31337",
- "chainId": "31337",
- "vaultAddress": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
- "isEnable": true
}| X-VESSEL-UID required | string User ID passed from gateway |
{- "address": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
- "vesselKey": "0xa33c4f4d9c546b0dd1bb88e5746b3f569b8a9750bac6813875cf5edc22cf599ef8a8110ac7fec9bdea811369cb4588e14e5eec87cbd41c4c39e91b680a9fce7a",
- "feeLevel": "0",
- "status": "ACTIVE",
- "registeredOnChain": false
}| chainId required | string <int32> |
| X-VESSEL-UID required | string User ID passed from gateway |
{- "message": "string",
- "signature": "string",
- "operator": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5"
}| X-VESSEL-UID required | string User ID passed from gateway |
| symbolName required | string (SpotSymbolName) |
| timestamp required | string (Timestamp) transact time in milliseconds |
| side required | string Enum: "BUY" "SELL" |
| type required | string Enum: "LIMIT" "MARKET" |
| timeInForce required | string Enum: "GTC" "IOC" "FOK" Required if type = LIMIT |
| size required | string (SpotSymbolSize) |
| price required | string (SpotSymbolPrice) Required if type = LIMIT |
| nonce required | string (UserNonce) A unique id among user actions. Automatically generated if not sent. Actions with the same nonce can be accepted only when the previous one is finished, otherwise the action will be rejected. |
| signature required | string Poseidon hash for this order |
| respType | string Default: "FULL" Enum: "FULL" "ACK" "RESULT" ACK - response with succeeded or not RESULT - ACK + order FULL - ACK + order + trade |
{- "symbolName": "ETHUSDT",
- "timestamp": "1507725176595",
- "side": "BUY",
- "type": "LIMIT",
- "timeInForce": "GTC",
- "size": "42.24",
- "price": "1.23",
- "nonce": "string",
- "signature": "string",
- "respType": "FULL"
}{- "orderId": "1721801324586001",
- "symbolName": "ETHUSDT",
- "nonce": "string",
- "transactTime": "1507725176595",
- "price": "1.23",
- "originSize": "42.24",
- "type": "LIMIT",
- "side": "BUY",
- "timeInForce": "GTC",
- "takerFeeRate": "0.0001",
- "makerFeeRate": "0.0001",
- "executedSize": "42.24",
- "cumulativeQuoteSize": "42.24",
- "status": "FILLED",
- "fills": [
- {
- "price": "1.23",
- "size": "42.24"
}
]
}| symbolName required | string (SpotSymbolName) Example: symbolName=ETHUSDT |
| orderId required | string (SpotOrderId) Example: orderId=1721801324586001 Order ID |
| X-VESSEL-UID required | string User ID passed from gateway |
{- "orderId": "1721801324586001",
- "symbolName": "ETHUSDT",
- "nonce": "string",
- "transactTime": "1507725176595",
- "price": "1.23",
- "originSize": "42.24",
- "type": "LIMIT",
- "side": "BUY",
- "timeInForce": "GTC",
- "takerFeeRate": "0.0001",
- "makerFeeRate": "0.0001",
- "executedSize": "42.24",
- "cumulativeQuoteSize": "42.24",
- "status": "FILLED"
}| symbolName | string |
| X-VESSEL-UID required | string User ID passed from gateway |
[- {
- "orderId": "1721801324586001",
- "symbolName": "ETHUSDT",
- "nonce": "string",
- "transactTime": "1507725176595",
- "price": "1.23",
- "originSize": "42.24",
- "type": "LIMIT",
- "side": "BUY",
- "timeInForce": "GTC",
- "takerFeeRate": "0.0001",
- "makerFeeRate": "0.0001",
- "executedSize": "42.24",
- "cumulativeQuoteSize": "42.24",
- "status": "FILLED"
}
]| X-VESSEL-UID required | string User ID passed from gateway |
| symbolName required | string (SpotSymbolName) |
| timestamp required | string (Timestamp) transact time in milliseconds |
| side required | string Enum: "BUY" "SELL" |
| type required | string Enum: "LIMIT" "MARKET" |
| timeInForce | string Enum: "GTC" "IOC" "FOK" Required if type = LIMIT |
| size required | string (SpotSymbolSize) |
| price | string (SpotSymbolPrice) Required if type = LIMIT |
| nonce | string (UserNonce) A unique id among user actions. Automatically generated if not sent. Actions with the same nonce can be accepted only when the previous one is finished, otherwise the action will be rejected. |
| signature required | string Poseidon hash for this order |
| respType required | string Default: "FULL" Enum: "FULL" "ACK" "RESULT" ACK - response with succeeded or not RESULT - ACK + order FULL - ACK + order + trade |
| oldOrderId required | string (SpotOrderId) Order ID |
| cancelOrderRestriction required | string Enum: "NEW_OR_PARTIALLY_FILLED" "ONLY_PARTIALLY_FILLED" "ONLY_NEW" |
| replaceMode required | string Enum: "STOP_ON_FAILURE" "ALLOW_FAILURE" |
{- "symbolName": "ETHUSDT",
- "timestamp": "1507725176595",
- "side": "BUY",
- "type": "LIMIT",
- "timeInForce": "GTC",
- "size": "42.24",
- "price": "1.23",
- "nonce": "string",
- "signature": "string",
- "respType": "FULL",
- "oldOrderId": "1721801324586001",
- "cancelOrderRestriction": "NEW_OR_PARTIALLY_FILLED",
- "replaceMode": "STOP_ON_FAILURE"
}{- "orderId": "1721801324586001",
- "symbolName": "ETHUSDT",
- "nonce": "string",
- "transactTime": "1507725176595",
- "price": "1.23",
- "originSize": "42.24",
- "type": "LIMIT",
- "side": "BUY",
- "timeInForce": "GTC",
- "takerFeeRate": "0.0001",
- "makerFeeRate": "0.0001",
- "executedSize": "42.24",
- "cumulativeQuoteSize": "42.24",
- "status": "FILLED",
- "fills": [
- {
- "price": "1.23",
- "size": "42.24"
}
]
}| chainId | string <int32> (ChainId) |
| assetId | string (AssetId) 字段值要求唯一, int32 |
| amount | string (AssetAmount) 资产数量 in human readable |
| feeAmount | string (AssetAmount) 资产数量 in human readable |
| nonce | string (UserNonce) A unique id among user actions. Automatically generated if not sent. Actions with the same nonce can be accepted only when the previous one is finished, otherwise the action will be rejected. |
| timestamp | string (Timestamp) transact time in milliseconds |
| signature | string Poseidon hash for this order |
{- "chainId": "31337",
- "assetId": "3",
- "amount": "1.23",
- "feeAmount": "1.23",
- "nonce": "string",
- "timestamp": "1507725176595",
- "signature": "string"
}| X-VESSEL-UID required | string User ID passed from gateway |
| signature | string |
object (TransferMessage) EIP712 签名信息,所有字段都来源于message的信息,不需要额外的精度转换!! |
{- "signature": "0xabcdefg",
- "message": {
- "action": "Send",
- "assetId": "3",
- "sendAmount": "1.23",
- "feeAmount": "1.23",
- "fromAddress": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
- "toAddress": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
- "nonce": "string",
- "timestamp": "1507725176595"
}
}| X-VESSEL-UID required | string User ID passed from gateway |
| poolId | string <int32> (AmmPoolId) |
| tickIndexL | string |
| tickIndexR | string |
| baseAssetAmount | string |
| quoteAssetAmount | string |
| nonce | string (UserNonce) A unique id among user actions. Automatically generated if not sent. Actions with the same nonce can be accepted only when the previous one is finished, otherwise the action will be rejected. |
| timestamp | string (Timestamp) transact time in milliseconds |
| signature | string |
{- "poolId": "12",
- "tickIndexL": "12",
- "tickIndexR": "20",
- "baseAssetAmount": "string",
- "quoteAssetAmount": "string",
- "nonce": "string",
- "timestamp": "1507725176595",
- "signature": "string"
}{- "baseAssetAmount": "1.23",
- "quoteAssetAmount": "1.23"
}| X-VESSEL-UID required | string User ID passed from gateway |
| poolId | string <int32> (AmmPoolId) |
| tickIndexL | string |
| tickIndexR | string |
| baseAssetAmount | string |
| quoteAssetAmount | string |
| nonce | string (UserNonce) A unique id among user actions. Automatically generated if not sent. Actions with the same nonce can be accepted only when the previous one is finished, otherwise the action will be rejected. |
| timestamp | string (Timestamp) transact time in milliseconds |
| signature | string |
{- "poolId": "12",
- "tickIndexL": "12",
- "tickIndexR": "20",
- "baseAssetAmount": "string",
- "quoteAssetAmount": "string",
- "nonce": "string",
- "timestamp": "1507725176595",
- "signature": "string"
}{- "baseAssetAmount": "1.23",
- "quoteAssetAmount": "1.23",
- "baseAssetFeeAmount": "1.23",
- "quoteAssetFeeAmount": "1.23"
}| poolId | string |
| tickL | string Not necessary, but needs to coexist with tickR |
| tickR | string Not necessary, but needs to coexist with tickL |
| X-VESSEL-UID required | string User ID passed from gateway |
[- {
- "poolId": "12",
- "symbolId": "string",
- "tickL": "12",
- "tickR": "20",
- "baseAssetAmount": "1.23",
- "quoteAssetAmount": "1.23",
- "baseAssetFeeAmount": "1.23",
- "quoteAssetFeeAmount": "1.23"
}
][- {
- "symbolId": "string",
- "symbolName": "ETHUSDT",
- "baseAssetId": "3",
- "quoteAssetId": "3",
- "baseDecimal": "string",
- "priceDecimal": "string",
- "makerFeeDiscount": "string",
- "takerFeeDiscount": "string",
- "minTradingSize": "42.24",
- "maxTradingSize": "42.24",
- "maxPrice": "1.23",
- "status": "ACTIVE"
}
]{- "symbolId": "string",
- "symbolName": "ETHUSDT",
- "baseAssetId": "3",
- "quoteAssetId": "3",
- "baseDecimal": "string",
- "priceDecimal": "string",
- "makerFeeDiscount": "string",
- "takerFeeDiscount": "string",
- "minTradingSize": "42.24",
- "maxTradingSize": "42.24",
- "maxPrice": "1.23",
- "status": "ACTIVE"
}{- "symbolId": "string",
- "symbolName": "ETHUSDT",
- "baseAssetId": "3",
- "quoteAssetId": "3",
- "baseDecimal": "string",
- "priceDecimal": "string",
- "makerFeeDiscount": "string",
- "takerFeeDiscount": "string",
- "minTradingSize": "42.24",
- "maxTradingSize": "42.24",
- "maxPrice": "1.23",
- "status": "ACTIVE"
}| symbolName required | string |
| limit | integer [ 1 .. 5000 ] Default: 100 |
{- "timestamp": "1507725176595",
- "asks": [
- {
- "price": "1.23",
- "size": "42.24",
- "orderCount": "string"
}
], - "bids": [
- {
- "price": "1.23",
- "size": "42.24",
- "orderCount": "string"
}
]
}| chainId | string <int32> (ChainId) |
| address | string (Address) |
| vesselKey | string (UserVesselKey) |
| levelId | string (FeeLevel) |
{- "chainId": "31337",
- "address": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
- "vesselKey": "0xa33c4f4d9c546b0dd1bb88e5746b3f569b8a9750bac6813875cf5edc22cf599ef8a8110ac7fec9bdea811369cb4588e14e5eec87cbd41c4c39e91b680a9fce7a",
- "levelId": "0"
}{- "uid": "1727077698601001"
}