All messages generated when core engine processing commands
Accepts one of the following messages:
{
"id": "1727077698601001",
"logicalChainId": "31337",
"address": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
"vesselKey": "0xa33c4f4d9c546b0dd1bb88e5746b3f569b8a9750bac6813875cf5edc22cf599ef8a8110ac7fec9bdea811369cb4588e14e5eec87cbd41c4c39e91b680a9fce7a",
"feeLevel": "0",
"status": "ACTIVE",
"registeredOnChain": true
}
{
"type": "CreateAccount",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"id": "1727077698601001",
"feeLevel": "0",
"status": "ACTIVE",
"registeredOnChain": true
}
{
"type": "UpdateAccount",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"logicalChainId": "31337",
"amount": "4224",
"transactionFee": "0",
"assetName": "WBTC",
"transactionHash": "0xxxxxx",
"nonce": "string"
}
{
"type": "Deposit",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"logicalChainId": "31337",
"amount": "4224",
"transactionFee": "0",
"assetName": "WBTC",
"nonce": "string"
}
{
"type": "Withdraw",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"amount": "4224",
"transactionFee": "0",
"assetName": "WBTC",
"nonce": "string",
"toAddress": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
"toUid": "1727077698601001"
}
{
"type": "Transfer",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"logicalChainId": "31337",
"amount": "4224",
"assetName": "WBTC",
"reserveId": "123456789",
"transferAmount": "4224"
}
{
"type": "FastWithdraw",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
Spot order basic info
{
"uid": "1727077698601001",
"orderId": "1721801324586001",
"symbolName": "ETHUSDT",
"nonce": "string",
"transactTime": "1507725176595",
"price": "123",
"originSize": "4224",
"type": "LIMIT",
"side": "BUY",
"timeInForce": "GTC",
"takerFeeRate": "0.0001",
"makerFeeRate": "0.0001"
}
{
"type": "CreateOrder",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"uid": "1727077698601001",
"orderId": "1721801324586001",
"symbolName": "ETHUSDT",
"nonce": "string",
"transactTime": "1507725176595",
"price": "123",
"originSize": "4224",
"type": "LIMIT",
"side": "BUY",
"timeInForce": "GTC",
"takerFeeRate": "0.0001",
"makerFeeRate": "0.0001",
"executedSize": "4224",
"cumulativeQuoteSize": "4224",
"status": "FILLED"
}
{
"type": "CloseOrder",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"tradeDedupId": "string",
"makerUid": "1727077698601001",
"takerUid": "1727077698601001",
"makerOrderId": "1721801324586001",
"takerOrderId": "1721801324586001",
"symbolName": "ETHUSDT",
"price": "123",
"size": "4224",
"takerSide": "4224",
"makerFee": "4224",
"takerFee": "4224"
}
{
"type": "Trade",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"tradeDedupId": "string",
"poolId": "12",
"takerUid": "1727077698601001",
"makerOrderId": "1721801324586001",
"takerOrderId": "1721801324586001",
"symbolName": "ETHUSDT",
"price": "123",
"size": "4224",
"takerSide": "BUY",
"arbitrageFee": "4224",
"takerFee": "4224"
}
{
"type": "AmmTrade",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"symbolName": "ETHUSDT",
"poolId": "string",
"tickL": "string",
"tickR": "string",
"baseAssetAmount": "4224",
"quoteAssetAmount": "4224",
"baseAssetName": "WBTC",
"quoteAssetName": "WBTC",
"nonce": "string",
"liquidityDelta": "12345678"
}
{
"type": "AmmAddLiquidity",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
{
"symbolName": "ETHUSDT",
"poolId": "string",
"tickL": "string",
"tickR": "string",
"baseAssetFeeAmount": "4224",
"quoteAssetFeeAmount": "4224",
"baseAssetAmount": "4224",
"quoteAssetAmount": "4224",
"baseAssetName": "WBTC",
"quoteAssetName": "WBTC",
"nonce": "string",
"liquidityDelta": "12345678"
}
{
"type": "AmmRemoveLiquidity",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
[
{
"assetId": "3",
"available": "4224",
"inUse": "4224"
}
]
{
"type": "UserAssetUpdate",
"seqId": 0,
"userId": "1727077698601001",
"timestamp": "1507725176595"
}
Accepts one of the following messages:
{
"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"
}
{
"type": "CreateSymbol",
"seqId": 0,
"symbolName": "ETHUSDT",
"timestamp": "1507725176595"
}
{
"poolId": "12",
"symbolName": "ETHUSDT",
"minTick": "1.23",
"maxTick": "1.23",
"tickSpacing": "1.23",
"userMaxPositionCount": "string",
"operatorFeeRate": "0.0001"
}
{
"type": "CreateAmmPool",
"seqId": 0,
"symbolName": "ETHUSDT",
"timestamp": "1507725176595"
}
Spot order basic info
{
"uid": "1727077698601001",
"orderId": "1721801324586001",
"symbolName": "ETHUSDT",
"nonce": "string",
"transactTime": "1507725176595",
"price": "123",
"originSize": "4224",
"type": "LIMIT",
"side": "BUY",
"timeInForce": "GTC",
"takerFeeRate": "0.0001",
"makerFeeRate": "0.0001"
}
{
"type": "CreateOrder",
"seqId": 0,
"symbolName": "ETHUSDT",
"timestamp": "1507725176595"
}
{
"uid": "1727077698601001",
"orderId": "1721801324586001",
"symbolName": "ETHUSDT",
"nonce": "string",
"transactTime": "1507725176595",
"price": "123",
"originSize": "4224",
"type": "LIMIT",
"side": "BUY",
"timeInForce": "GTC",
"takerFeeRate": "0.0001",
"makerFeeRate": "0.0001",
"executedSize": "4224",
"cumulativeQuoteSize": "4224",
"status": "FILLED"
}
{
"type": "CloseOrder",
"seqId": 0,
"symbolName": "ETHUSDT",
"timestamp": "1507725176595"
}
{
"tradeDedupId": "string",
"makerUid": "1727077698601001",
"takerUid": "1727077698601001",
"makerOrderId": "1721801324586001",
"takerOrderId": "1721801324586001",
"symbolName": "ETHUSDT",
"price": "123",
"size": "4224",
"takerSide": "4224",
"makerFee": "4224",
"takerFee": "4224"
}
{
"type": "Trade",
"seqId": 0,
"symbolName": "ETHUSDT",
"timestamp": "1507725176595"
}
{
"tradeDedupId": "string",
"poolId": "12",
"takerUid": "1727077698601001",
"makerOrderId": "1721801324586001",
"takerOrderId": "1721801324586001",
"symbolName": "ETHUSDT",
"price": "123",
"size": "4224",
"takerSide": "BUY",
"arbitrageFee": "4224",
"takerFee": "4224"
}
{
"type": "AmmTrade",
"seqId": 0,
"symbolName": "ETHUSDT",
"timestamp": "1507725176595"
}
Accepts the following message:
{
"bids": [
{
"price": "0.0024",
"size": "10"
}
],
"asks": [
{
"price": "0.0024",
"size": "10"
}
]
}
{
"type": "UpdateDepth",
"seqId": 0,
"symbolName": "ETHUSDT",
"timestamp": "1507725176595"
}
Accepts one of the following messages:
{
"assetId": "3",
"assetName": "WBTC",
"onChainDecimal": "string",
"decimal": "3"
}
{
"type": "CreateAsset",
"seqId": 0,
"timestamp": "1507725176595"
}
{
"poolId": "12",
"symbolName": "ETHUSDT",
"minPrice": "1.23",
"maxPrice": "1.23",
"tickSpacing": "1.23",
"userMaxPositionCount": "string",
"operatorFeeRate": "0.0001"
}
{
"type": "CreatePool",
"seqId": 0,
"timestamp": "1507725176595"
}
{
"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"
}
{
"type": "CreateSymbol",
"seqId": 0,
"timestamp": "1507725176595"
}
{
"logicalChainId": "31337",
"isEnabled": true,
"assetId": "3"
}
{
"type": "UpdateChainAsset",
"seqId": 0,
"timestamp": "1507725176595"
}
{
"logicalChainId": "31337",
"isEnabled": true,
"vaultAddress": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
"chainId": "31337"
}
{
"type": "CreateOrUpdateChainInfo",
"seqId": 0,
"timestamp": "1507725176595"
}
Accepts the following message:
[
{
"uid": "1727077698601001",
"assetId": "3",
"address": "0xC38C2c17fC38fb8fF575BDd3b7fcF04b8274a7B5",
"before": "4224",
"after": "4224"
}
]
{
"type": "UpdateUserBalance",
"seqId": 0,
"timestamp": "1507725176595"
}