{ "db": "SQLite", "3ec696a1077ae52f21230ac33b9083ae3420698ff4d6bb1bba2d71ad518daf85": { "query": "\n insert into orders (\n uuid,\n trading_pair,\n position,\n initial_price,\n min_quantity,\n max_quantity,\n leverage,\n liquidation_price,\n creation_timestamp,\n term,\n origin\n ) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);\n ", "describe": { "columns": [], "parameters": { "Right": 11 }, "nullable": [] } }, "50abbb297394739ec9d85917f8c32aa8bcfa0bfe140b24e9eeda4ce8d30d4f8d": { "query": "\n select\n state\n from cfd_states\n where cfd_id = ?\n order by id desc\n limit 1;\n ", "describe": { "columns": [ { "name": "state", "ordinal": 0, "type_info": "Text" } ], "parameters": { "Right": 1 }, "nullable": [ false ] } }, "7941da81b43abcaa82d51bbfecaed51f13fc637dc611cebb87eea638ba055a42": { "query": "\n select\n cfds.id as cfd_id,\n orders.uuid as order_id,\n orders.initial_price as initial_price,\n orders.leverage as leverage,\n orders.trading_pair as trading_pair,\n orders.position as position,\n orders.origin as origin,\n orders.liquidation_price as liquidation_price,\n cfds.quantity_usd as quantity_usd,\n cfd_states.state as state\n from cfds as cfds\n inner join orders as orders on cfds.order_id = orders.id\n inner join cfd_states as cfd_states on cfd_states.cfd_id = cfds.id\n where cfd_states.state in (\n select\n state\n from cfd_states\n where cfd_id = cfds.id\n order by id desc\n limit 1\n )\n ", "describe": { "columns": [ { "name": "cfd_id", "ordinal": 0, "type_info": "Int64" }, { "name": "order_id", "ordinal": 1, "type_info": "Text" }, { "name": "initial_price", "ordinal": 2, "type_info": "Text" }, { "name": "leverage", "ordinal": 3, "type_info": "Int64" }, { "name": "trading_pair", "ordinal": 4, "type_info": "Text" }, { "name": "position", "ordinal": 5, "type_info": "Text" }, { "name": "origin", "ordinal": 6, "type_info": "Text" }, { "name": "liquidation_price", "ordinal": 7, "type_info": "Text" }, { "name": "quantity_usd", "ordinal": 8, "type_info": "Text" }, { "name": "state", "ordinal": 9, "type_info": "Text" } ], "parameters": { "Right": 0 }, "nullable": [ false, false, false, false, false, false, false, false, false, false ] } }, "8e7571250da58b12f5884f17656e5966957c7798ea029c701a4fc43fd613f015": { "query": "\n select\n id\n from cfds\n where order_uuid = ?;\n ", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 1 }, "nullable": [ true ] } }, "a464a1feb12abadff8bfd5b2b3b7362f3846869c0702944b21737eff8f420be5": { "query": "\n insert into cfd_states (\n cfd_id,\n state\n ) values (?, ?);\n ", "describe": { "columns": [], "parameters": { "Right": 2 }, "nullable": [] } }, "f3dce76f316212c91cb3402b0cef00f1c9adbef8519c54e9bdbd373aab946209": { "query": "\n select * from orders where uuid = ?;\n ", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "uuid", "ordinal": 1, "type_info": "Text" }, { "name": "trading_pair", "ordinal": 2, "type_info": "Text" }, { "name": "position", "ordinal": 3, "type_info": "Text" }, { "name": "initial_price", "ordinal": 4, "type_info": "Text" }, { "name": "min_quantity", "ordinal": 5, "type_info": "Text" }, { "name": "max_quantity", "ordinal": 6, "type_info": "Text" }, { "name": "leverage", "ordinal": 7, "type_info": "Int64" }, { "name": "liquidation_price", "ordinal": 8, "type_info": "Text" }, { "name": "creation_timestamp", "ordinal": 9, "type_info": "Text" }, { "name": "term", "ordinal": 10, "type_info": "Text" }, { "name": "origin", "ordinal": 11, "type_info": "Text" } ], "parameters": { "Right": 1 }, "nullable": [ true, false, false, false, false, false, false, false, false, false, false, false ] } }, "fac3d990211ef9e5fa8bcd6e1d6e0c8a81652b98fb11f2686affd1593fba75fd": { "query": "\n insert into cfd_states (\n cfd_id,\n state\n ) values (?, ?);\n ", "describe": { "columns": [], "parameters": { "Right": 2 }, "nullable": [] } }, "fad32c267100e26f4fba80e4feb5ff45ee29c3a67bd378f6627b1f13ee45c573": { "query": "\n insert into cfds (\n order_id,\n order_uuid,\n quantity_usd\n ) values (?, ?, ?);\n ", "describe": { "columns": [], "parameters": { "Right": 3 }, "nullable": [] } } }