Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bthaile/d277e25e5998f5147e4f77057a06472e to your computer and use it in GitHub Desktop.
Save bthaile/d277e25e5998f5147e4f77057a06472e to your computer and use it in GitHub Desktop.
market: 0x1EB92Bb28C4dE30B4b6E17f44bd11ce4ed8CB16D
first trade 
  long 3 at 0.5, cost 1.50
{"_direction":"0","_market":"0x4a87EC1fbfd76233e0Ab8BC56c75E9C52631E536","_outcome":"2","_amount":"30000000000000000","_price":"50","_betterOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_worseOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_tradeGroupId":"0x363537303765612d636239332d346238352d393964632d346630376362616500","_loopLimit":"2","_affiliateAddress":"0x0000000000000000000000000000000000000000","_kycToken":"0x0000000000000000000000000000000000000000"}

first profit loss log

{
  "_id": "10013128406.000000000019",
  "_rev": "1-d4dde189a876b20cd5238399182c77ce",
  "account": "0xbd355A7e5a7ADb23b51F54027E624BfE0e238DF6",
  "avgPrice": "0x32",
  "blockHash": "0xebb37d11918bec86a026eca308365adbe69443ab7f8804c447924b30e61b6e38",
  "blockNumber": 13128406,
  "frozenFunds": "0x14d1120d7b160000",
  "logIndex": 19,
  "market": "0x4a87EC1fbfd76233e0Ab8BC56c75E9C52631E536",
  "name": "ProfitLossChanged",
  "netPosition": "0x6a94d74f430000",
  "outcome": "0x02",
  "realizedCost": "0x00",
  "realizedProfit": "0x00",
  "removed": false,
  "timestamp": "0x5d66cc8c",
  "topics": [
    "0x59543b7f82735782aa5bdb97dff40ff288d4548a5865da513b40e4088e2ee77e",
    "0x00000000000000000000000068629d2995fa8acd7d12d89d6c648dadd7a4ffae",
    "0x0000000000000000000000004a87ec1fbfd76233e0ab8bc56c75e9c52631e536",
    "0x000000000000000000000000bd355a7e5a7adb23b51f54027e624bfe0e238df6"
  ],
  "transactionHash": "0x2cb34f811250e7ac6bcd4c058d34822d5ff40e8b2c262b295e97e6c6f64b03f3",
  "transactionIndex": 2,
  "transactionLogIndex": 0,
  "universe": "0x68629D2995fA8aCd7D12d89d6C648dadd7a4fFae"
}
second trade
   short 6 at .49, cost 3.06 (as shown in order form)
{"_direction":"1","_market":"0x4a87EC1fbfd76233e0Ab8BC56c75E9C52631E536","_outcome":"2","_amount":"60000000000000000","_price":"49","_betterOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_worseOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_tradeGroupId":"0x346264313935652d363063332d343836382d613262372d353964623138613200","_loopLimit":"2","_affiliateAddress":"0x0000000000000000000000000000000000000000","_kycToken":"0x0000000000000000000000000000000000000000"}
{
  "_id": "10013128424.000000000045",
  "_rev": "1-a10f8284cadf565945c49af20f4b9500",
  "account": "0xbd355A7e5a7ADb23b51F54027E624BfE0e238DF6",
  "avgPrice": "0x31",
  "blockHash": "0xe63e1121c55d60b7262357c893f1ff91435223230dcb27e103711a91ed8c9114",
  "blockNumber": 13128424,
  "frozenFunds": "0x153ba6e4ca590000",
  "logIndex": 45,
  "market": "0x4a87EC1fbfd76233e0Ab8BC56c75E9C52631E536",
  "name": "ProfitLossChanged",
  "netPosition": "-0x6a94d74f430000",
  "outcome": "0x02",
  "realizedCost": "0x14d1120d7b160000",
  "realizedProfit": "-0x6a94d74f430000",
  "removed": false,
  "timestamp": "0x5d66ccd4",
  "topics": [
    "0x59543b7f82735782aa5bdb97dff40ff288d4548a5865da513b40e4088e2ee77e",
    "0x00000000000000000000000068629d2995fa8acd7d12d89d6c648dadd7a4ffae",
    "0x0000000000000000000000004a87ec1fbfd76233e0ab8bc56c75e9c52631e536",
    "0x000000000000000000000000bd355a7e5a7adb23b51f54027e624bfe0e238df6"
  ],
  "transactionHash": "0x1aa55ce0129fbd156641db61ba69345ae33961847036feeba566b72c6e36fc3a",
  "transactionIndex": 2,
  "transactionLogIndex": 0,
  "universe": "0x68629D2995fA8aCd7D12d89d6C648dadd7a4fFae"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment