Schemas
Price
{
"timestamp": 1655258160,
"symbol": "WETHUSDC",
"price": "1226.40748958",
"changed": 102.5,
"source": "uniswap"
}
Product
{
"productHash": "0x80a8d7960659492318a6b8fb019245475394320bfedd143e792b1c95e51683d7",
"isPut": false,
"symbol": "WETH/USDC",
"underlying": {
"address": "0xf11c7e4ce4846c7cc0669105f8358612d0e1f593",
"name": "Wrapped Ether",
"symbol": "WETH",
"logo": "https://www.mtpelerin.com/images/ethereum-coin.svg",
"decimals": 18,
"totalSupply": "1000000000000000000000000000000"
},
"strike": {
"address": "0x1ad483798422423e3471d2fa8a7ef6eb83bd4926",
"name": "USD Coin",
"symbol": "USDC",
"logo": "https://www.mtpelerin.com/images/usdc-coin.svg",
"decimals": 6,
"totalSupply": "10000000000000000000000000000000000000000"
},
"collateral": {
"address": "0xf11c7e4ce4846c7cc0669105f8358612d0e1f593",
"name": "Wrapped Ether",
"symbol": "WETH",
"logo": "https://www.mtpelerin.com/images/ethereum-coin.svg",
"decimals": 18,
"totalSupply": "1000000000000000000000000000000"
},
"underlyingPrice": {
"timestamp": 1655372040,
"symbol": "WETHUSDC",
"price": "1133.46101189",
"changed": 97.3,
"source": "uniswap"
}
}
VToken
{
"address": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"name": "WETHUSDC 24-June-2022 1500 Call WETH Collateral",
"symbol": "vWETHUSDC/WETH-24JUN22-1500C",
"underlying": "0xf11c7e4ce4846c7cc0669105f8358612d0e1f593",
"strike": "0x1ad483798422423e3471d2fa8a7ef6eb83bd4926",
"collateral": "0xf11c7e4ce4846c7cc0669105f8358612d0e1f593",
"strikePrice": "150000000000",
"isPut": false,
"expiry": 1656057600,
"decimals": 8,
"features": ["0x00", "0x01"],
"creator": "0xa8241fdfac07beaa5cc7e8f32f8e9b7f0525017e",
"productHash": "0x80a8d7960659492318a6b8fb019245475394320bfedd143e792b1c95e51683d7",
"position": {
"amount": "97900000000"
}
"market": {
"timestamp": 1655370823,
"ask1": "31000000",
"bid1": "37000000",
"volume": "18680000000"
},
"stat": {
"timestamp": 1655370762,
"totalSupply": "520300000000",
"holder": 11
}
}
VTokeMarket
{
"vTokenAddress": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"timestamp": 1655370823,
"ask1": "31000000",
"bid1": "37000000",
"volume": "18680000000"
}
VTokenStat
{
"vTokenAddress": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"timestamp": 1655370762,
"totalSupply": "520300000000",
"holder": 0
}
VTokenPosition
{
"vTokenAddress": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"amount": "97900000000"
}
Order
{
"vTokenAddress": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"orderHash": "0xb9843e5947a9e2b066f7e0952aa55ada66aefef65cb2181848cc3f8605d4bf4a",
"side": 1,
"type": 1,
"price": "49000000",
"priceScaled": 49,
"amount": "40000000",
"filled": "0",
"size": "40000000",
"fee": "0",
"expiry": 1655380336,
"ctime": 1655358737,
"mtime": 1655358737,
"limitOrder": {
"makerToken": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"takerToken": "0x1ad483798422423e3471d2fa8a7ef6eb83bd4926",
"makerAmount": "40000000",
"takerAmount": "19600000",
"maker": "0x5b3988233ecaaa9a8997d16476169490a0e450ad",
"taker": "0x0000000000000000000000000000000000000000",
"chainId": 43113,
"verifyingContract": "0xc325452c274aa4b298e1cb028c1636bc9b5db639",
"takerTokenFeeAmount": "0",
"sender": "0x0000000000000000000000000000000000000000",
"feeRecipient": "0x0000000000000000000000000000000000000000",
"pool": "0x0000000000000000000000000000000000000000000000000000000000000000",
"salt": "1655358737313",
"expiry": "1655380336"
},
"signature": {
"v": 27,
"r": "0x70451409e70f592c150dbfb1f376f374ce2ac70acf8ae3f6553f7fa256460a95",
"s": "0x7055f0d4204864a4d33be250c9fa6fcc7d2a965c21b9dc071113f6b164502e4b",
"signatureType": 2
}
}
LimitOrder
{
"makerToken": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"takerToken": "0x1ad483798422423e3471d2fa8a7ef6eb83bd4926",
"makerAmount": "40000000",
"takerAmount": "19600000",
"maker": "0x5b3988233ecaaa9a8997d16476169490a0e450ad",
"taker": "0x0000000000000000000000000000000000000000",
"chainId": 43113,
"verifyingContract": "0xc325452c274aa4b298e1cb028c1636bc9b5db639",
"takerTokenFeeAmount": "0",
"sender": "0x0000000000000000000000000000000000000000",
"feeRecipient": "0x0000000000000000000000000000000000000000",
"pool": "0x0000000000000000000000000000000000000000000000000000000000000000",
"salt": "1655358737313",
"expiry": "1655380336"
}
Signature
{
"v": 27,
"r": "0x70451409e70f592c150dbfb1f376f374ce2ac70acf8ae3f6553f7fa256460a95",
"s": "0x7055f0d4204864a4d33be250c9fa6fcc7d2a965c21b9dc071113f6b164502e4b",
"signatureType": 2
}
Long
{
"address": "0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1",
"vTokenAddress": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"isPut": false,
"expiry": 1656057600,
"amount": "200000000",
"strikePrice": "150000000000",
"expiryPrice": "160000000000",
"payout": "12500000",
"roe": 62.5,
"fee": "12500",
"state": 1,
"ctime": 1655289127,
"mtime": 1655289127,
"underlyingSymbol": "WETH"
}
LongPnL
{
"timestamp": 1655289127,
"address": "0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1",
"vTokenAddress": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"amount": "200000000",
"expiryPrice": "160000000000",
"payout": "12500000",
"roe": 62.5
}
Product In Long Filter
{
"productSymbol": "WETH/USDC",
"underlyingSymbol": "WETH"
}
Short
{
"address": "0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1",
"vaultId": 1,
"index": 0,
"vTokenAddress": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"isPut": false,
"expiry": 1656057600,
"amount": "300000000",
"strikePrice": "150000000000",
"expiryPrice": "160000000000",
"payout": "293750000",
"roe": -62.5,
"fee": "293750",
"state": 1,
"ctime": 1655289127,
"mtime": 1655289127
}
Collateral
{
"address": "0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1",
"vaultId": 1,
"index": 0,
"collateral": "0xf11c7e4ce4846c7cc0669105f8358612d0e1f593",
"amount": "300000000",
"ctime": 1655289127,
"mtime": 1655289127
}
Vault
{
"address": "0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1",
"vaultId": 1,
"shortVTokens": ["0xc4129a3d3f495442f3e58e914352eebb84df68c2"],
"shortAmounts": ["200000000"],
"shortPayouts": ["100000000"],
"longVTokens": ["0xb42eab5720f252d7feca51a48724509ff358610f"],
"longAmounts": ["100000000"],
"longPayouts": ["100000000"],
"collateralAssets": ["0xa8241fdfac07beaa5cc7e8f32f8e9b7f0525017e"],
"collateralAmounts": ["200000000"],
"marginRequired": ["180000000"],
"roe": 62.5,
"fee": "12500",
"state": 1,
"underlyingAddress": "0xf11c7e4ce4846c7cc0669105f8358612d0e1f593",
"isPut": true,
"liquidatablePrice": 1600,
"ctime": 1655289127,
"mtime": 1655289127
}
VaultPnL
{
"timestamp": 1655289127,
"address": "0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1",
"vaultId": 1,
"shortVTokens": ["0xc4129a3d3f495442f3e58e914352eebb84df68c2"],
"shortAmounts": ["200000000"],
"shortExpiryPrices": ["160000000000"],
"longVTokens": ["0xb42eab5720f252d7feca51a48724509ff358610f"],
"longAmounts": ["100000000"],
"longExpiryPrices": ["160000000000"],
"collateralAssets": ["0xa8241fdfac07beaa5cc7e8f32f8e9b7f0525017e"],
"collateralAmounts": ["200000000"],
"marginRequired": ["180000000"],
"roe": 62.5
}
Log
{
"timestamp": 1655369683,
"blockNumber": 10733318,
"transactionHash": "0x0ddacd1952837b0660c684c5c25022c869ba47f5ba4ae7d5187f99d228fa6a56",
"logIndex": 6,
"address": "0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1",
"action": "LimitOrderFilled",
"vTokenAddress": "0xc4129a3d3f495442f3e58e914352eebb84df68c2",
"vTokenChange": "25000000"
}
Last updated