You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

457 lines
13 KiB

{
"db": "SQLite",
"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
]
}
},
"63c8fd1a1512b55c19feea463dbb6a0fdf98a325801ba8677e2a33fd3ee1ebb9": {
"query": "\n select\n orders.uuid as order_id,\n orders.initial_price as price,\n orders.min_quantity as min_quantity,\n orders.max_quantity as max_quantity,\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 orders.creation_timestamp as creation_timestamp,\n orders.term as term,\n orders.oracle_event_id,\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": "order_id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "price",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "min_quantity",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "max_quantity",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "leverage",
"ordinal": 4,
"type_info": "Int64"
},
{
"name": "trading_pair",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "position",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "origin",
"ordinal": 7,
"type_info": "Text"
},
{
"name": "liquidation_price",
"ordinal": 8,
"type_info": "Text"
},
{
"name": "creation_timestamp",
"ordinal": 9,
"type_info": "Text"
},
{
"name": "term",
"ordinal": 10,
"type_info": "Text"
},
{
"name": "oracle_event_id",
"ordinal": 11,
"type_info": "Text"
},
{
"name": "quantity_usd",
"ordinal": 12,
"type_info": "Text"
},
{
"name": "state",
"ordinal": 13,
"type_info": "Text"
}
],
"parameters": {
"Right": 0
},
"nullable": [
false,
false,
false,
false,
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": []
}
},
"a59cf0824b5e4191c94c229086ce464d1b8084f65a6fafb165d27ce6df5b815b": {
"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 oracle_event_id\n ) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 12
},
"nullable": []
}
},
"e0d3fe192c419be4fa65199d1e024ce8794e19a847be53038b7a8a33afb36bd2": {
"query": "\n select\n orders.uuid as order_id,\n orders.initial_price as price,\n orders.min_quantity as min_quantity,\n orders.max_quantity as max_quantity,\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 orders.creation_timestamp as creation_timestamp,\n orders.term as term,\n orders.oracle_event_id,\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 and orders.uuid = ?\n ",
"describe": {
"columns": [
{
"name": "order_id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "price",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "min_quantity",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "max_quantity",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "leverage",
"ordinal": 4,
"type_info": "Int64"
},
{
"name": "trading_pair",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "position",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "origin",
"ordinal": 7,
"type_info": "Text"
},
{
"name": "liquidation_price",
"ordinal": 8,
"type_info": "Text"
},
{
"name": "creation_timestamp",
"ordinal": 9,
"type_info": "Text"
},
{
"name": "term",
"ordinal": 10,
"type_info": "Text"
},
{
"name": "oracle_event_id",
"ordinal": 11,
"type_info": "Text"
},
{
"name": "quantity_usd",
"ordinal": 12,
"type_info": "Text"
},
{
"name": "state",
"ordinal": 13,
"type_info": "Text"
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
}
},
"e45a49eb1fb4cbddc046712d9e2df2db0c18c618f0fae2133e51d82eda6bec36": {
"query": "\n select\n orders.uuid as order_id,\n orders.initial_price as price,\n orders.min_quantity as min_quantity,\n orders.max_quantity as max_quantity,\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 orders.creation_timestamp as creation_timestamp,\n orders.term as term,\n orders.oracle_event_id,\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 and orders.oracle_event_id = ?\n ",
"describe": {
"columns": [
{
"name": "order_id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "price",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "min_quantity",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "max_quantity",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "leverage",
"ordinal": 4,
"type_info": "Int64"
},
{
"name": "trading_pair",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "position",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "origin",
"ordinal": 7,
"type_info": "Text"
},
{
"name": "liquidation_price",
"ordinal": 8,
"type_info": "Text"
},
{
"name": "creation_timestamp",
"ordinal": 9,
"type_info": "Text"
},
{
"name": "term",
"ordinal": 10,
"type_info": "Text"
},
{
"name": "oracle_event_id",
"ordinal": 11,
"type_info": "Text"
},
{
"name": "quantity_usd",
"ordinal": 12,
"type_info": "Text"
},
{
"name": "state",
"ordinal": 13,
"type_info": "Text"
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
}
},
"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"
},
{
"name": "oracle_event_id",
"ordinal": 12,
"type_info": "Text"
}
],
"parameters": {
"Right": 1
},
"nullable": [
true,
false,
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": []
}
}
}