From 02b2aa6a18219fac6c5d5299f9b2c9bbf621250d Mon Sep 17 00:00:00 2001 From: Pete Vilter Date: Sun, 24 Nov 2024 19:16:19 -0500 Subject: [PATCH] update test --- .../commodityMarket/commodityMarket.dd.txt | 1060 ++++++++++++++--- 1 file changed, 903 insertions(+), 157 deletions(-) diff --git a/apps/actors/systems/kvSync/examples/commodityMarket/commodityMarket.dd.txt b/apps/actors/systems/kvSync/examples/commodityMarket/commodityMarket.dd.txt index 339d4601..9d22d4a1 100644 --- a/apps/actors/systems/kvSync/examples/commodityMarket/commodityMarket.dd.txt +++ b/apps/actors/systems/kvSync/examples/commodityMarket/commodityMarket.dd.txt @@ -17,7 +17,7 @@ application/json "price": 10, "amount": 100, "side": "sell", - "status": "open", + "status": "Open", "user": "alice" } } @@ -30,7 +30,7 @@ application/json "price": 10, "amount": 50, "side": "buy", - "status": "open", + "status": "Open", "user": "bob" } } @@ -46,7 +46,7 @@ application/json "price": 10, "amount": 100, "side": "sell", - "status": "open", + "status": "Open", "user": "alice" } } @@ -62,7 +62,7 @@ application/json "price": 10, "amount": 50, "side": "buy", - "status": "open", + "status": "Open", "user": "bob" } } @@ -91,7 +91,7 @@ application/json "price": 10, "amount": 100, "side": "buy", - "status": "open", + "status": "Open", "user": "alice" } } @@ -104,7 +104,7 @@ application/json "price": 10, "amount": 100, "side": "buy", - "status": "open", + "status": "Open", "user": "alice" } } @@ -117,7 +117,7 @@ application/json "price": 10, "amount": 100, "side": "buy", - "status": "open", + "status": "Open", "user": "alice" } } @@ -130,7 +130,7 @@ application/json "price": 10, "amount": 100, "side": "sell", - "status": "open", + "status": "Open", "user": "alice" } } @@ -146,7 +146,7 @@ application/json "price": 10, "amount": 100, "side": "buy", - "status": "open", + "status": "Open", "user": "alice" } } @@ -159,7 +159,7 @@ application/json "price": 10, "amount": 100, "side": "buy", - "status": "open", + "status": "Open", "user": "alice" } } @@ -172,7 +172,7 @@ application/json "price": 10, "amount": 100, "side": "buy", - "status": "open", + "status": "Open", "user": "alice" } } @@ -185,7 +185,7 @@ application/json "price": 10, "amount": 100, "side": "sell", - "status": "open", + "status": "Open", "user": "alice" } } @@ -212,8 +212,19 @@ application/json "id": 0.31381383055244927, "price": 37, "amount": 20, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.5728273955852048", + "value": { + "id": 0.31381383055244927, + "price": 37, + "amount": 0, + "status": "Sold", + "side": "Sell", "user": "alice" } } @@ -225,8 +236,41 @@ application/json "id": 0.015206331866985496, "price": 17, "amount": 85, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.619620117004607", + "value": { + "id": 0.015206331866985496, + "price": 17, + "amount": 78, + "status": "Open", + "side": "Buy", + "user": "alice" + } + }, + { + "transactionID": "0.787366886890835", + "value": { + "id": 0.015206331866985496, + "price": 17, + "amount": 44, + "status": "Open", + "side": "Buy", + "user": "alice" + } + }, + { + "transactionID": "0.8598554999193694", + "value": { + "id": 0.015206331866985496, + "price": 17, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "alice" } } @@ -238,10 +282,55 @@ application/json "id": 0.5100409435201818, "price": 60, "amount": 88, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.5728273955852048", + "value": { + "id": 0.5100409435201818, + "price": 60, + "amount": 68, + "status": "Open", + "side": "Buy", + "user": "alice" + } + }, + { + "transactionID": "0.2581415779498793", + "value": { + "id": 0.5100409435201818, + "price": 60, + "amount": 57, + "status": "Open", + "side": "Buy", "user": "alice" } + }, + { + "transactionID": "0.0003834916282291446", + "value": { + "id": 0.5100409435201818, + "price": 60, + "amount": 0, + "status": "Sold", + "side": "Buy", + "user": "alice" + } + } + ], + "/trades/0.2581415779498793": [ + { + "transactionID": "0.5728273955852048", + "value": { + "id": 0.2581415779498793, + "buyOrder": 0.5100409435201818, + "sellOrder": 0.31381383055244927, + "amount": 20, + "price": 48.5 + } } ], "/orders/0.5855064094862961": [ @@ -251,12 +340,35 @@ application/json "id": 0.5855064094862961, "price": 16, "amount": 11, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.2581415779498793", + "value": { + "id": 0.5855064094862961, + "price": 16, + "amount": 0, + "status": "Sold", + "side": "Sell", "user": "alice" } } ], + "/trades/0.6062274799740198": [ + { + "transactionID": "0.2581415779498793", + "value": { + "id": 0.6062274799740198, + "buyOrder": 0.5100409435201818, + "sellOrder": 0.5855064094862961, + "amount": 11, + "price": 38 + } + } + ], "/orders/0.4453516187568676": [ { "transactionID": "0.0003834916282291446", @@ -264,12 +376,46 @@ application/json "id": 0.4453516187568676, "price": 46, "amount": 92, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.0003834916282291446", + "value": { + "id": 0.4453516187568676, + "price": 46, + "amount": 35, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.40809971923762905", + "value": { + "id": 0.4453516187568676, + "price": 46, + "amount": 5, + "status": "Open", + "side": "Sell", "user": "bob" } } ], + "/trades/0.02466078710245042": [ + { + "transactionID": "0.0003834916282291446", + "value": { + "id": 0.02466078710245042, + "buyOrder": 0.5100409435201818, + "sellOrder": 0.4453516187568676, + "amount": 57, + "price": 53 + } + } + ], "/orders/0.8652590050969823": [ { "transactionID": "0.6062274799740198", @@ -277,8 +423,19 @@ application/json "id": 0.8652590050969823, "price": 41, "amount": 5, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.8652590050969823, + "price": 41, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "alice" } } @@ -290,8 +447,8 @@ application/json "id": 0.6594613051595737, "price": 51, "amount": 22, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -303,8 +460,19 @@ application/json "id": 0.4738564640040104, "price": 34, "amount": 13, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.4738564640040104, + "price": 34, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "bob" } } @@ -316,8 +484,19 @@ application/json "id": 0.2643711262050747, "price": 43, "amount": 3, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.2643711262050747, + "price": 43, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "bob" } } @@ -329,12 +508,35 @@ application/json "id": 0.9319858592301475, "price": 62, "amount": 30, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.40809971923762905", + "value": { + "id": 0.9319858592301475, + "price": 62, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "alice" } } ], + "/trades/0.8863366133406168": [ + { + "transactionID": "0.40809971923762905", + "value": { + "id": 0.8863366133406168, + "buyOrder": 0.9319858592301475, + "sellOrder": 0.4453516187568676, + "amount": 30, + "price": 54 + } + } + ], "/orders/0.7999519010073989": [ { "transactionID": "0.2855238856612927", @@ -342,10 +544,90 @@ application/json "id": 0.7999519010073989, "price": 27, "amount": 63, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } + }, + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.7999519010073989, + "price": 27, + "amount": 60, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.7999519010073989, + "price": 27, + "amount": 55, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.7999519010073989, + "price": 27, + "amount": 42, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.10559463277980186", + "value": { + "id": 0.7999519010073989, + "price": 27, + "amount": 1, + "status": "Open", + "side": "Sell", + "user": "bob" + } + } + ], + "/trades/0.7916017969060706": [ + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.7916017969060706, + "buyOrder": 0.2643711262050747, + "sellOrder": 0.7999519010073989, + "amount": 3, + "price": 35 + } + } + ], + "/trades/0.45140223107431293": [ + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.45140223107431293, + "buyOrder": 0.8652590050969823, + "sellOrder": 0.7999519010073989, + "amount": 5, + "price": 34 + } + } + ], + "/trades/0.7173019593742694": [ + { + "transactionID": "0.2855238856612927", + "value": { + "id": 0.7173019593742694, + "buyOrder": 0.4738564640040104, + "sellOrder": 0.7999519010073989, + "amount": 13, + "price": 30.5 + } } ], "/orders/0.7290001299502329": [ @@ -355,10 +637,33 @@ application/json "id": 0.7290001299502329, "price": 88, "amount": 41, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } + }, + { + "transactionID": "0.10559463277980186", + "value": { + "id": 0.7290001299502329, + "price": 88, + "amount": 0, + "status": "Sold", + "side": "Buy", + "user": "bob" + } + } + ], + "/trades/0.3051861941862723": [ + { + "transactionID": "0.10559463277980186", + "value": { + "id": 0.3051861941862723, + "buyOrder": 0.7290001299502329, + "sellOrder": 0.7999519010073989, + "amount": 41, + "price": 57.5 + } } ], "/orders/0.45140223107431293": [ @@ -368,8 +673,41 @@ application/json "id": 0.45140223107431293, "price": 18, "amount": 67, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.5661584819351868", + "value": { + "id": 0.45140223107431293, + "price": 18, + "amount": 56, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.7173019593742694", + "value": { + "id": 0.45140223107431293, + "price": 18, + "amount": 29, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.45140223107431293, + "price": 18, + "amount": 0, + "status": "Sold", + "side": "Sell", "user": "bob" } } @@ -381,12 +719,35 @@ application/json "id": 0.42560927982033164, "price": 30, "amount": 11, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.5661584819351868", + "value": { + "id": 0.42560927982033164, + "price": 30, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "alice" } } ], + "/trades/0.21517043534216512": [ + { + "transactionID": "0.5661584819351868", + "value": { + "id": 0.21517043534216512, + "buyOrder": 0.42560927982033164, + "sellOrder": 0.45140223107431293, + "amount": 11, + "price": 24 + } + } + ], "/orders/0.694033415703134": [ { "transactionID": "0.7173019593742694", @@ -394,12 +755,35 @@ application/json "id": 0.694033415703134, "price": 86, "amount": 27, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.7173019593742694", + "value": { + "id": 0.694033415703134, + "price": 86, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "bob" } } ], + "/trades/0.619620117004607": [ + { + "transactionID": "0.7173019593742694", + "value": { + "id": 0.619620117004607, + "buyOrder": 0.694033415703134, + "sellOrder": 0.45140223107431293, + "amount": 27, + "price": 52 + } + } + ], "/orders/0.9553094734021551": [ { "transactionID": "0.619620117004607", @@ -407,12 +791,35 @@ application/json "id": 0.9553094734021551, "price": 9, "amount": 7, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.619620117004607", + "value": { + "id": 0.9553094734021551, + "price": 9, + "amount": 0, + "status": "Sold", + "side": "Sell", "user": "bob" } } ], + "/trades/0.8863198197319357": [ + { + "transactionID": "0.619620117004607", + "value": { + "id": 0.8863198197319357, + "buyOrder": 0.015206331866985496, + "sellOrder": 0.9553094734021551, + "amount": 7, + "price": 13 + } + } + ], "/orders/0.37721112405621554": [ { "transactionID": "0.8863198197319357", @@ -420,8 +827,8 @@ application/json "id": 0.37721112405621554, "price": 45, "amount": 41, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -433,21 +840,43 @@ application/json "id": 0.3695129378414833, "price": 55, "amount": 38, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "alice" + } + } + ], + "/orders/0.20842740052233208": [ + { + "transactionID": "0.4039512359573983", + "value": { + "id": 0.20842740052233208, + "price": 18, + "amount": 54, + "side": "Sell", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.20842740052233208, + "price": 18, + "amount": 35, + "status": "Open", + "side": "Sell", "user": "alice" } - } - ], - "/orders/0.20842740052233208": [ + }, { - "transactionID": "0.4039512359573983", + "transactionID": "0.06801234424860435", "value": { "id": 0.20842740052233208, "price": 18, - "amount": 54, - "side": "sell", - "status": "open", + "amount": 0, + "status": "Sold", + "side": "Sell", "user": "alice" } } @@ -459,8 +888,8 @@ application/json "id": 0.9650901932875534, "price": 44, "amount": 65, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -472,8 +901,8 @@ application/json "id": 0.6609517467775864, "price": 53, "amount": 26, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -485,12 +914,35 @@ application/json "id": 0.2752696380720191, "price": 11, "amount": 34, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.787366886890835", + "value": { + "id": 0.2752696380720191, + "price": 11, + "amount": 0, + "status": "Sold", + "side": "Sell", "user": "bob" } } ], + "/trades/0.4568127481795966": [ + { + "transactionID": "0.787366886890835", + "value": { + "id": 0.4568127481795966, + "buyOrder": 0.015206331866985496, + "sellOrder": 0.2752696380720191, + "amount": 34, + "price": 14 + } + } + ], "/orders/0.5913882414730156": [ { "transactionID": "0.8598554999193694", @@ -498,12 +950,68 @@ application/json "id": 0.5913882414730156, "price": 5, "amount": 71, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.8598554999193694", + "value": { + "id": 0.5913882414730156, + "price": 5, + "amount": 27, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.4568127481795966", + "value": { + "id": 0.5913882414730156, + "price": 5, + "amount": 21, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.46217763466963324", + "value": { + "id": 0.5913882414730156, + "price": 5, + "amount": 7, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.6953998633617534", + "value": { + "id": 0.5913882414730156, + "price": 5, + "amount": 0, + "status": "Sold", + "side": "Sell", "user": "bob" } } ], + "/trades/0.46217763466963324": [ + { + "transactionID": "0.8598554999193694", + "value": { + "id": 0.46217763466963324, + "buyOrder": 0.015206331866985496, + "sellOrder": 0.5913882414730156, + "amount": 44, + "price": 11 + } + } + ], "/orders/0.6518629055021916": [ { "transactionID": "0.4568127481795966", @@ -511,12 +1019,35 @@ application/json "id": 0.6518629055021916, "price": 99, "amount": 6, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.4568127481795966", + "value": { + "id": 0.6518629055021916, + "price": 99, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "bob" } } ], + "/trades/0.8598554999193694": [ + { + "transactionID": "0.4568127481795966", + "value": { + "id": 0.8598554999193694, + "buyOrder": 0.6518629055021916, + "sellOrder": 0.5913882414730156, + "amount": 6, + "price": 52 + } + } + ], "/orders/0.29258132380673785": [ { "transactionID": "0.6160107442326944", @@ -524,8 +1055,19 @@ application/json "id": 0.29258132380673785, "price": 21, "amount": 71, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.06801234424860435", + "value": { + "id": 0.29258132380673785, + "price": 21, + "amount": 22, + "status": "Open", + "side": "Sell", "user": "alice" } } @@ -537,12 +1079,35 @@ application/json "id": 0.8195101016382781, "price": 18, "amount": 14, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.46217763466963324", + "value": { + "id": 0.8195101016382781, + "price": 18, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "bob" } } ], + "/trades/0.5062796468904983": [ + { + "transactionID": "0.46217763466963324", + "value": { + "id": 0.5062796468904983, + "buyOrder": 0.8195101016382781, + "sellOrder": 0.5913882414730156, + "amount": 14, + "price": 11.5 + } + } + ], "/orders/0.3881101900600923": [ { "transactionID": "0.4143147560901146", @@ -550,8 +1115,8 @@ application/json "id": 0.3881101900600923, "price": 63, "amount": 58, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -563,8 +1128,30 @@ application/json "id": 0.04202915219779047, "price": 15, "amount": 26, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.6953998633617534", + "value": { + "id": 0.04202915219779047, + "price": 15, + "amount": 24, + "status": "Open", + "side": "Sell", + "user": "bob" + } + }, + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.04202915219779047, + "price": 15, + "amount": 0, + "status": "Sold", + "side": "Sell", "user": "bob" } } @@ -576,8 +1163,8 @@ application/json "id": 0.34770394428419316, "price": 85, "amount": 68, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -589,8 +1176,8 @@ application/json "id": 0.3583391274868875, "price": 0, "amount": 35, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -602,8 +1189,8 @@ application/json "id": 0.6571485331814256, "price": 60, "amount": 39, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -615,12 +1202,58 @@ application/json "id": 0.5855059047094602, "price": 51, "amount": 9, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "alice" + } + }, + { + "transactionID": "0.6953998633617534", + "value": { + "id": 0.5855059047094602, + "price": 51, + "amount": 2, + "status": "Open", + "side": "Buy", + "user": "alice" + } + }, + { + "transactionID": "0.6953998633617534", + "value": { + "id": 0.5855059047094602, + "price": 51, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "alice" } } ], + "/trades/0.5977436956928519": [ + { + "transactionID": "0.6953998633617534", + "value": { + "id": 0.5977436956928519, + "buyOrder": 0.5855059047094602, + "sellOrder": 0.5913882414730156, + "amount": 7, + "price": 28 + } + } + ], + "/trades/0.27829665763145": [ + { + "transactionID": "0.6953998633617534", + "value": { + "id": 0.27829665763145, + "buyOrder": 0.5855059047094602, + "sellOrder": 0.04202915219779047, + "amount": 2, + "price": 33 + } + } + ], "/orders/0.3257611713612091": [ { "transactionID": "0.8601966894792362", @@ -628,10 +1261,89 @@ application/json "id": 0.3257611713612091, "price": 82, "amount": 72, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.3257611713612091, + "price": 82, + "amount": 48, + "status": "Open", + "side": "Buy", "user": "bob" } + }, + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.3257611713612091, + "price": 82, + "amount": 19, + "status": "Open", + "side": "Buy", + "user": "bob" + } + }, + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.3257611713612091, + "price": 82, + "amount": 0, + "status": "Sold", + "side": "Buy", + "user": "bob" + } + } + ], + "/trades/0.06801234424860435": [ + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.06801234424860435, + "buyOrder": 0.3257611713612091, + "sellOrder": 0.04202915219779047, + "amount": 24, + "price": 48.5 + } + } + ], + "/trades/0.08347707994606074": [ + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.08347707994606074, + "buyOrder": 0.3257611713612091, + "sellOrder": 0.45140223107431293, + "amount": 29, + "price": 50 + } + } + ], + "/trades/0.9992898264893236": [ + { + "transactionID": "0.8601966894792362", + "value": { + "id": 0.9992898264893236, + "buyOrder": 0.3257611713612091, + "sellOrder": 0.20842740052233208, + "amount": 19, + "price": 50 + } + }, + { + "transactionID": "0.06801234424860435", + "value": { + "id": 0.9992898264893236, + "buyOrder": 0.08347707994606074, + "sellOrder": 0.20842740052233208, + "amount": 35, + "price": 35 + } } ], "/orders/0.06411381118382682": [ @@ -641,8 +1353,8 @@ application/json "id": 0.06411381118382682, "price": 15, "amount": 73, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -654,11 +1366,45 @@ application/json "id": 0.08347707994606074, "price": 52, "amount": 84, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", + "user": "bob" + } + }, + { + "transactionID": "0.06801234424860435", + "value": { + "id": 0.08347707994606074, + "price": 52, + "amount": 49, + "status": "Open", + "side": "Buy", + "user": "bob" + } + }, + { + "transactionID": "0.06801234424860435", + "value": { + "id": 0.08347707994606074, + "price": 52, + "amount": 0, + "status": "Sold", + "side": "Buy", "user": "bob" } } + ], + "/trades/0.06411381118382682": [ + { + "transactionID": "0.06801234424860435", + "value": { + "id": 0.06411381118382682, + "buyOrder": 0.08347707994606074, + "sellOrder": 0.29258132380673785, + "amount": 49, + "price": 36.5 + } + } ] }, "user0": {}, @@ -670,8 +1416,8 @@ application/json "id": 0.31381383055244927, "price": 37, "amount": 20, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -683,8 +1429,8 @@ application/json "id": 0.015206331866985496, "price": 17, "amount": 85, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "alice" } } @@ -696,8 +1442,8 @@ application/json "id": 0.5100409435201818, "price": 60, "amount": 88, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "alice" } } @@ -709,8 +1455,8 @@ application/json "id": 0.5855064094862961, "price": 16, "amount": 11, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -722,8 +1468,8 @@ application/json "id": 0.8652590050969823, "price": 41, "amount": 5, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "alice" } } @@ -735,8 +1481,8 @@ application/json "id": 0.9319858592301475, "price": 62, "amount": 30, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "alice" } } @@ -748,8 +1494,8 @@ application/json "id": 0.6594613051595737, "price": 51, "amount": 22, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -761,8 +1507,8 @@ application/json "id": 0.42560927982033164, "price": 30, "amount": 11, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "alice" } } @@ -774,8 +1520,8 @@ application/json "id": 0.3695129378414833, "price": 55, "amount": 38, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -787,8 +1533,8 @@ application/json "id": 0.20842740052233208, "price": 18, "amount": 54, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -800,8 +1546,8 @@ application/json "id": 0.9650901932875534, "price": 44, "amount": 65, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -813,8 +1559,8 @@ application/json "id": 0.6609517467775864, "price": 53, "amount": 26, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -826,8 +1572,8 @@ application/json "id": 0.29258132380673785, "price": 21, "amount": 71, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -839,8 +1585,8 @@ application/json "id": 0.3881101900600923, "price": 63, "amount": 58, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -852,8 +1598,8 @@ application/json "id": 0.6571485331814256, "price": 60, "amount": 39, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "alice" } } @@ -865,8 +1611,8 @@ application/json "id": 0.5855059047094602, "price": 51, "amount": 9, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "alice" } } @@ -881,8 +1627,8 @@ application/json "id": 0.4453516187568676, "price": 46, "amount": 92, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -894,8 +1640,8 @@ application/json "id": 0.4738564640040104, "price": 34, "amount": 13, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -907,8 +1653,8 @@ application/json "id": 0.7290001299502329, "price": 88, "amount": 41, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -920,8 +1666,8 @@ application/json "id": 0.2643711262050747, "price": 43, "amount": 3, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -933,8 +1679,8 @@ application/json "id": 0.7999519010073989, "price": 27, "amount": 63, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -946,8 +1692,8 @@ application/json "id": 0.45140223107431293, "price": 18, "amount": 67, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -959,8 +1705,8 @@ application/json "id": 0.694033415703134, "price": 86, "amount": 27, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -972,8 +1718,8 @@ application/json "id": 0.9553094734021551, "price": 9, "amount": 7, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -985,8 +1731,8 @@ application/json "id": 0.37721112405621554, "price": 45, "amount": 41, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -998,8 +1744,8 @@ application/json "id": 0.2752696380720191, "price": 11, "amount": 34, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -1011,8 +1757,8 @@ application/json "id": 0.6518629055021916, "price": 99, "amount": 6, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -1024,8 +1770,8 @@ application/json "id": 0.5913882414730156, "price": 5, "amount": 71, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -1037,8 +1783,8 @@ application/json "id": 0.8195101016382781, "price": 18, "amount": 14, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -1050,8 +1796,8 @@ application/json "id": 0.04202915219779047, "price": 15, "amount": 26, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -1063,8 +1809,8 @@ application/json "id": 0.3583391274868875, "price": 0, "amount": 35, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -1076,8 +1822,8 @@ application/json "id": 0.34770394428419316, "price": 85, "amount": 68, - "side": "sell", - "status": "open", + "side": "Sell", + "status": "Open", "user": "bob" } } @@ -1089,8 +1835,8 @@ application/json "id": 0.3257611713612091, "price": 82, "amount": 72, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -1102,8 +1848,8 @@ application/json "id": 0.08347707994606074, "price": 52, "amount": 84, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } } @@ -1115,8 +1861,8 @@ application/json "id": 0.06411381118382682, "price": 15, "amount": 73, - "side": "buy", - "status": "open", + "side": "Buy", + "status": "Open", "user": "bob" } }