flyingfishTraders Daily PnL
Updated 17 hours ago
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- forked from Daily Stats @ https://flipsidecrypto.xyz/edit/queries/6f2cf700-243f-4004-a88f-29a8265ac256
with cte1 AS (
SELECT
livequery.live.udf_api(
'GET',
'https://science.flipsidecrypto.xyz/googlesheets/readsheet',
{ 'Content-Type': 'application/json' },
{
'sheets_id' : '1QMy-OCO8NFtb7chUXcAvWARPkgpvmK9Y5K0tXpMEGUI',
'tab_name' : 'base'
}
) as response
)
, my_data AS (
SELECT
value:date_str::date AS date
-- , value:increase_calls::integer AS increase_calls
-- , value:inc_users::integer AS inc_users
-- , value:opens::integer AS opens
-- , value:add_collateral_actions::integer AS add_collateral_actions
-- , value:added_collateral::float AS added_collateral
-- , value:long_collateral::float AS long_collateral
-- , value:short_collateral::float AS short_collateral
-- , value:increase_fees_usd::float AS increase_fees_usd
-- , value:positions::integer AS positions
-- , value:longs::integer AS longs
-- , value:shorts::integer AS shorts
-- , value:inc_position_size_usd::float AS inc_position_size_usd
-- , value:inc_long_position_size_usd::float AS inc_long_position_size_usd
-- , value:inc_short_position_size_usd::float AS inc_short_position_size_usd
-- , value:decrease_calls::integer AS decrease_calls
-- , value:reduce_collateral_actions::integer AS reduce_collateral_actions
-- , value:full_close_actions::integer AS full_close_actions
-- , value:decrease_long_actions::integer AS decrease_long_actions
-- , value:decrease_short_actions::integer AS decrease_short_actions