Event types

Deposit event

{
	"timestamp": "2019-07-10T09:49:40.95",
	"type": "DEPOSIT",
	"reference": "0xf53b61c9726eee4d6a53fd3b09f56e6b3e7db1506100608271f43e7837b1917a",
	"topics": ["0xb18e6e42cd252b78731f4eec48a7d1cf6a0b3849", "TIME", "0x6baad3fe5d0fd4be604420e728adbd68d67e119e"],
	"data": {
		"address": "0xb18e6e42cd252b78731f4eec48a7d1cf6a0b3849",
		"token": "0x6baad3fe5d0fd4be604420e728adbd68d67e119e",
		"tokenSymbol": "TIME",
		"value": 1000000000000000000000
	}
}

Withdrawal event

{
	"timestamp": "2019-07-10T12:43:54.571",
	"type": "WITHDRAWAL",
	"reference": "0x535b26d968a05fec2b1e8c8e43fcaaec87b3b26224ceef81be108a1344476a71",
	"topics": ["0xb18e6e42cd252b78731f4eec48a7d1cf6a0b3849", "TIME", "0x6baad3fe5d0fd4be604420e728adbd68d67e119e"],
	"data": {
		"address": "0xb18e6e42cd252b78731f4eec48a7d1cf6a0b3849",
		"token": "0x6baad3fe5d0fd4be604420e728adbd68d67e119e",
		"tokenSymbol": "TIME",
		"value": 1500000000000000000000,
		"withdrawFee": 10000000000000000000
	}
}

Order event

{
	"timestamp": "2019-07-10T13:01:24.555",
	"type": "ORDER",
	"reference": "0x83de06440be296e3f5947c92c25504e8b57d267d4edc715f4b98fa8a16a9ad0f",
	"topics": ["0x1134cc86b45039cc211c6d1d2e4b3c77f60207ed", "TIME", "ETH", "ETH", "0x6baad3fe5d0fd4be604420e728adbd68d67e119e", "0x14067be7a55defaaf094b324a7010136e072d6f5", "0x14067be7a55defaaf094b324a7010136e072d6f5"],
	"data": {
		"address": "0x1134cc86b45039cc211c6d1d2e4b3c77f60207ed",
		"direction": "SELL",
		"baseTokenAddress": "0x6baad3fe5d0fd4be604420e728adbd68d67e119e",
		"quoteTokenAddress": "0x14067be7a55defaaf094b324a7010136e072d6f5",
		"feeTokenAddress": "0x14067be7a55defaaf094b324a7010136e072d6f5",
		"baseTokenSymbol": "TIME",
		"quoteTokenSymbol": "ETH",
		"feeTokenSymbol": "ETH",
		"baseTokenAmount": 278321300000000000000,
		"quoteTokenAmount": 6053488275000000000000000000000,
		"feeTokenAmount": 30267441375000000000000000000,
		"type": "LIMIT"
	}
}

Order Update event

{
	"timestamp": "2019-07-08T12:41:26.913",
	"type": "ORDER_UPDATE",
	"reference": "0x30330fd2d6592c8f2a7645cd7546b4a61b7721b049a31dbc4538efac9b3e2b2b",
	"topics": ["0xb18e6e42cd252b78731f4eec48a7d1cf6a0b3849", "TIME", "USDT", "USDT", "0x6baad3fe5d0fd4be604420e728adbd68d67e119e", "0xdac17f958d2ee523a2206206994597c13d831ec7", "0xdac17f958d2ee523a2206206994597c13d831ec7"],
	"data": {
		"address": "0xb18e6e42cd252b78731f4eec48a7d1cf6a0b3849",
		"direction": "BUY",
		"baseTokenAddress": "0x6baad3fe5d0fd4be604420e728adbd68d67e119e",
		"quoteTokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
		"feeTokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
		"baseTokenSymbol": "TIME",
		"quoteTokenSymbol": "USDT",
		"feeTokenSymbol": "USDT",
		"baseTokenAmount": 300000000000000000000,
		"quoteTokenAmount": 30000000000000000,
		"feeTokenAmount": 150000000000000,
		"orderType": "LIMIT"
	}
}

Order Expired event

{
	"timestamp": "2019-07-11T11:15:33.142",
	"type": "ORDER_EXPIRED",
	"reference": "0xbfebe3693491eab2651ed6ed32b4b2630cc0c06b3dcae305f59a7787f56c94d2",
	"topics": ["0x1134cc86b45039cc211c6d1d2e4b3c77f60207ed", "TIME", "ETH", "ETH", "0x6baad3fe5d0fd4be604420e728adbd68d67e119e", "0x14067be7a55defaaf094b324a7010136e072d6f5", "0x14067be7a55defaaf094b324a7010136e072d6f5"],
	"data": {
		"address": "0x1134cc86b45039cc211c6d1d2e4b3c77f60207ed",
		"direction": "SELL",
		"baseTokenAddress": "0x6baad3fe5d0fd4be604420e728adbd68d67e119e",
		"quoteTokenAddress": "0x14067be7a55defaaf094b324a7010136e072d6f5",
		"feeTokenAddress": "0x14067be7a55defaaf094b324a7010136e072d6f5",
		"baseTokenSymbol": "TIME",
		"quoteTokenSymbol": "ETH",
		"feeTokenSymbol": "ETH",
		"baseTokenAmount": 19569400000000000000,
		"quoteTokenAmount": 352249200000000000000000000000,
		"feeTokenAmount": 1761246000000000000000000000,
		"type": "LIMIT"
	}
}

Filling event

{
	"timestamp": "2019-07-12T07:21:36.263",
	"type": "FILLING",
	"reference": "0x452a6f6c6dd4d1dbf6349976f96d322588f9c311257c501d807ef427c89cfb8c",
	"topics": ["0xb18e6e42cd252b78731f4eec48a7d1cf6a0b3849", "0x3c1492ac96ada525e882d560efd47d0d590ce6a7", "BTC", "0xcf87f5070539e938feaf931f36972bd0e3c024c4"],
	"data": {
		"type": "TAKER_FEE",
		"from": "0xb18e6e42cd252b78731f4eec48a7d1cf6a0b3849",
		"to": "0x3c1492ac96ada525e882d560efd47d0d590ce6a7",
		"token": "0xcf87f5070539e938feaf931f36972bd0e3c024c4",
		"tokenSymbol": "BTC",
		"value": 199165000000000
	}
}

Market Order event

{
	"timestamp": "2019-07-12T07:41:11.462",
	"type": "MARKET_ORDER",
	"reference": "0x552b7e90ebe166feb6b49bf28fb41e5e26e7c5d7ff2e6b3440906df65bab57a6",
	"topics": ["0x1134cc86b45039cc211c6d1d2e4b3c77f60207ed", "TIME", "ETH", "ETH", "0x6baad3fe5d0fd4be604420e728adbd68d67e119e", "0x14067be7a55defaaf094b324a7010136e072d6f5", "0x14067be7a55defaaf094b324a7010136e072d6f5"],
	"data": {
		"address": "0x1134cc86b45039cc211c6d1d2e4b3c77f60207ed",
		"direction": "BUY",
		"baseTokenAddress": "0x6baad3fe5d0fd4be604420e728adbd68d67e119e",
		"quoteTokenAddress": "0x14067be7a55defaaf094b324a7010136e072d6f5",
		"feeTokenAddress": "0x14067be7a55defaaf094b324a7010136e072d6f5",
		"baseTokenSymbol": "TIME",
		"quoteTokenSymbol": "ETH",
		"feeTokenSymbol": "ETH",
		"baseTokenAmount": 25123500000000000000,
		"quoteTokenAmount": 407199225000000000000000000000,
		"feeTokenAmount": 2035996125000000000000000000,
		"type": "MARKET"
	}
}

Trade event

{
	"timestamp": "2019-07-12T09:09:22.24",
	"type": "TRADE",
	"reference": "13384",
	"topics": ["TIME", "ETH", "0x6baad3fe5d0fd4be604420e728adbd68d67e119e", "0x14067be7a55defaaf094b324a7010136e072d6f5"],
	"data": {
		"id": 13384,
		"direction": "BUY",
		"baseTokenAddress": "0x6baad3fe5d0fd4be604420e728adbd68d67e119e",
		"quoteTokenAddress": "0x14067be7a55defaaf094b324a7010136e072d6f5",
		"baseTokenSymbol": "TIME",
		"quoteTokenSymbol": "ETH",
		"baseTokenAmount": 2014400000000000000,
		"quoteTokenAmount": 31726800000000000000000000000,
		"makerAddress": "0x1134cc86b45039cc211c6d1d2e4b3c77f60207ed",
		"takerAddress": "0x1134cc86b45039cc211c6d1d2e4b3c77f60207ed"
	}
}

Order Book Updated event

{
	"timestamp": "2019-07-12T11:36:35.966",
	"type": "ORDER_BOOK_UPDATED",
	"reference": "TIMEBTC",
	"topics": ["TIMEBTC"],
	"data": {
		"market": "TIMEBTC"
	}
}

Raw Order Book Updated event

{
	"timestamp": "2019-07-12T11:36:35.98",
	"type": "RAW_ORDER_BOOK_UPDATED",
	"reference": "TIMEBTC",
	"topics": ["TIMEBTC"],
	"data": {
		"market": "TIMEBTC",
		"rawOrderBook": {
			"timestamp": "2019-07-12T11:36:35.967",
			"bid": [
				{
					"market": "TIMEBTC",
					"hash": "0x06072180e86dc95e12a68870f39536c1362220f64432e8d377cb064fc888ff82",
					"direction": "BUY",
					"quantity": "38.464219",
					"price": "0.00030133",
					"createdAt": "2019-07-12T11:34:55.498",
					"expiredAt": "2019-07-12T11:40:53.618"
				}
			],
			"ask": [
				{
					"market": "TIMEBTC",
					"hash": "0x9ed45ce8b944c822aeeb811aa4018a8172c1fc327f5ee76c66332735f3df98a0",
					"direction": "SELL",
					"quantity": "0.1",
					"price": "0.00031237",
					"createdAt": "2019-07-12T11:36:27.557",
					"expiredAt": "2019-07-12T11:42:07.623"
				}
			]
		}
	}
}

Group Order Book Updated event

{
	"timestamp": "2019-07-12T11:36:35.997",
	"type": "GROUP_ORDER_BOOK_UPDATED",
	"reference": "TIMEBTC",
	"topics": ["TIMEBTC"],
	"data": {
		"market": "TIMEBTC",
		"orderbook": {
			"timestamp": "2019-07-12T11:36:35.98",
			"bid": [
				{
					"price": "0.00000199",
					"volume": "48227.075252",
					"volumeQuote": "0.09597187975148"
				}
			],
			"ask": [
				{
					"price": "0.00031237",
					"volume": "0.1",
					"volumeQuote": "0.000031237"
				}
			]
		}
	}
}