Skip to content

Instantly share code, notes, and snippets.

@bthaile
Created August 28, 2019 18:19
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/97eba1739afff5c6a666b36bfa04c526 to your computer and use it in GitHub Desktop.
Save bthaile/97eba1739afff5c6a666b36bfa04c526 to your computer and use it in GitHub Desktop.
market: 0x25D690355b8E2C5e6966FB902C16373fEBbD0f48
first trade 
  long 5 at 0.31, cost 1.55
{"_direction":"0","_market":"0x25D690355b8E2C5e6966FB902C16373fEBbD0f48","_outcome":"5","_amount":"50000000000000000","_price":"31","_betterOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_worseOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_tradeGroupId":"0x303531616132322d373838632d346335382d613136662d393064396531316300","_loopLimit":"1","_affiliateAddress":"0x0000000000000000000000000000000000000000","_kycToken":"0x0000000000000000000000000000000000000000"}

first profit loss log

{
  "_id": "10013127908.000000000076",
  "_rev": "1-388b00d4a4261cdd717543c6ac5844fb",
  "account": "0xbd355A7e5a7ADb23b51F54027E624BfE0e238DF6",
  "avgPrice": "0x1f",
  "blockHash": "0x4a212cd762588e4e089d95b0254ecbbd500c383394b78ac5d3dc419363188134",
  "blockNumber": 13127908,
  "frozenFunds": "0x1582b4c9a9db0000",
  "logIndex": 76,
  "market": "0x25D690355b8E2C5e6966FB902C16373fEBbD0f48",
  "name": "ProfitLossChanged",
  "netPosition": "0xb1a2bc2ec50000",
  "outcome": "0x05",
  "realizedCost": "0x00",
  "realizedProfit": "0x00",
  "removed": false,
  "timestamp": "0x5d66c4c4",
  "topics": [
    "0x59543b7f82735782aa5bdb97dff40ff288d4548a5865da513b40e4088e2ee77e",
    "0x00000000000000000000000068629d2995fa8acd7d12d89d6c648dadd7a4ffae",
    "0x00000000000000000000000025d690355b8e2c5e6966fb902c16373febbd0f48",
    "0x000000000000000000000000bd355a7e5a7adb23b51f54027e624bfe0e238df6"
  ],
  "transactionHash": "0x72aeca78e25210dd235aa8ed33abc8e47c78e53ed740e2a15384f416fdc4cfb0",
  "transactionIndex": 0,
  "transactionLogIndex": 0,
  "universe": "0x68629D2995fA8aCd7D12d89d6C648dadd7a4fFae"
}
second trade
   short 10 at .28, cost 7.2 (as shown in order form)
{"_direction":"1","_market":"0x25D690355b8E2C5e6966FB902C16373fEBbD0f48","_outcome":"5","_amount":"100000000000000000","_price":"28","_betterOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_worseOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_tradeGroupId":"0x373630353834642d656238352d346531632d393832302d373664623365393500","_loopLimit":"1","_affiliateAddress":"0x0000000000000000000000000000000000000000","_kycToken":"0x0000000000000000000000000000000000000000"}
{
  "_id": "10013127931.000000000046",
  "_rev": "1-04bc9caa54e69e6c8cc5223998f897ad",
  "account": "0xbd355A7e5a7ADb23b51F54027E624BfE0e238DF6",
  "avgPrice": "0x1c",
  "blockHash": "0x889ee9c46a82f71eb611a45f4dd8b185756d66391838eaa7c6da4de5bb18d301",
  "blockNumber": 13127931,
  "frozenFunds": "0x31f5c4ed27680000",
  "logIndex": 46,
  "market": "0x25D690355b8E2C5e6966FB902C16373fEBbD0f48",
  "name": "ProfitLossChanged",
  "netPosition": "-0xb1a2bc2ec50000",
  "outcome": "0x05",
  "realizedCost": "0x1582b4c9a9db0000",
  "realizedProfit": "-0x0214e8348c4f0000",
  "removed": false,
  "timestamp": "0x5d66c520",
  "topics": [
    "0x59543b7f82735782aa5bdb97dff40ff288d4548a5865da513b40e4088e2ee77e",
    "0x00000000000000000000000068629d2995fa8acd7d12d89d6c648dadd7a4ffae",
    "0x00000000000000000000000025d690355b8e2c5e6966fb902c16373febbd0f48",
    "0x000000000000000000000000bd355a7e5a7adb23b51f54027e624bfe0e238df6"
  ],
  "transactionHash": "0x97fc2f583b9311041ac9103750ffbab5a5ceceb32a3d985890389218b6719b75",
  "transactionIndex": 2,
  "transactionLogIndex": 0,
  "universe": "0x68629D2995fA8aCd7D12d89d6C648dadd7a4fFae"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment