@@ -59,20 +59,30 @@ pub fn print_positions(positions: &[Position], output: &OutputFormat) -> anyhow:
5959 json ! ( {
6060 "title" : p. title,
6161 "slug" : p. slug,
62+ "icon" : p. icon,
63+ "event_slug" : p. event_slug,
64+ "event_id" : p. event_id,
6265 "outcome" : p. outcome,
6366 "outcome_index" : p. outcome_index,
67+ "opposite_outcome" : p. opposite_outcome,
68+ "opposite_asset" : p. opposite_asset. to_string( ) ,
69+ "asset" : p. asset. to_string( ) ,
6470 "size" : p. size. to_string( ) ,
6571 "avg_price" : p. avg_price. to_string( ) ,
6672 "initial_value" : p. initial_value. to_string( ) ,
6773 "current_value" : p. current_value. to_string( ) ,
6874 "cash_pnl" : p. cash_pnl. to_string( ) ,
6975 "percent_pnl" : p. percent_pnl. to_string( ) ,
76+ "total_bought" : p. total_bought. to_string( ) ,
7077 "realized_pnl" : p. realized_pnl. to_string( ) ,
78+ "percent_realized_pnl" : p. percent_realized_pnl. to_string( ) ,
7179 "cur_price" : p. cur_price. to_string( ) ,
7280 "condition_id" : p. condition_id. to_string( ) ,
7381 "proxy_wallet" : p. proxy_wallet. to_string( ) ,
7482 "redeemable" : p. redeemable,
7583 "mergeable" : p. mergeable,
84+ "end_date" : p. end_date. to_string( ) ,
85+ "negative_risk" : p. negative_risk,
7686 } )
7787 } )
7888 . collect ( ) ;
@@ -122,15 +132,21 @@ pub fn print_closed_positions(
122132 json ! ( {
123133 "title" : p. title,
124134 "slug" : p. slug,
135+ "icon" : p. icon,
136+ "event_slug" : p. event_slug,
125137 "outcome" : p. outcome,
126138 "outcome_index" : p. outcome_index,
139+ "opposite_outcome" : p. opposite_outcome,
140+ "opposite_asset" : p. opposite_asset. to_string( ) ,
141+ "asset" : p. asset. to_string( ) ,
127142 "avg_price" : p. avg_price. to_string( ) ,
128143 "total_bought" : p. total_bought. to_string( ) ,
129144 "realized_pnl" : p. realized_pnl. to_string( ) ,
130145 "cur_price" : p. cur_price. to_string( ) ,
131146 "condition_id" : p. condition_id. to_string( ) ,
132147 "proxy_wallet" : p. proxy_wallet. to_string( ) ,
133148 "timestamp" : p. timestamp,
149+ "end_date" : p. end_date. date_naive( ) . to_string( ) ,
134150 } )
135151 } )
136152 . collect ( ) ;
@@ -228,15 +244,23 @@ pub fn print_trades(trades: &[Trade], output: &OutputFormat) -> anyhow::Result<(
228244 json ! ( {
229245 "title" : t. title,
230246 "slug" : t. slug,
247+ "icon" : t. icon,
248+ "event_slug" : t. event_slug,
231249 "side" : t. side. to_string( ) ,
232250 "outcome" : t. outcome,
233251 "outcome_index" : t. outcome_index,
252+ "asset" : t. asset. to_string( ) ,
234253 "size" : t. size. to_string( ) ,
235254 "price" : t. price. to_string( ) ,
236255 "timestamp" : t. timestamp,
237256 "condition_id" : t. condition_id. to_string( ) ,
238257 "proxy_wallet" : t. proxy_wallet. to_string( ) ,
239258 "transaction_hash" : t. transaction_hash. to_string( ) ,
259+ "name" : t. name,
260+ "pseudonym" : t. pseudonym,
261+ "bio" : t. bio,
262+ "profile_image" : t. profile_image,
263+ "profile_image_optimized" : t. profile_image_optimized,
240264 } )
241265 } )
242266 . collect ( ) ;
@@ -259,6 +283,12 @@ pub fn print_activity(activity: &[Activity], output: &OutputFormat) -> anyhow::R
259283 activity_type : String ,
260284 #[ tabled( rename = "Market" ) ]
261285 title : String ,
286+ #[ tabled( rename = "Side" ) ]
287+ side : String ,
288+ #[ tabled( rename = "Outcome" ) ]
289+ outcome : String ,
290+ #[ tabled( rename = "Price" ) ]
291+ price : String ,
262292 #[ tabled( rename = "Size" ) ]
263293 size : String ,
264294 #[ tabled( rename = "USDC" ) ]
@@ -271,6 +301,9 @@ pub fn print_activity(activity: &[Activity], output: &OutputFormat) -> anyhow::R
271301 . map ( |a| Row {
272302 activity_type : a. activity_type . to_string ( ) ,
273303 title : truncate ( a. title . as_deref ( ) . unwrap_or ( DASH ) , 35 ) ,
304+ side : a. side . as_ref ( ) . map ( |s| s. to_string ( ) ) . unwrap_or_default ( ) ,
305+ outcome : a. outcome . as_deref ( ) . unwrap_or ( DASH ) . into ( ) ,
306+ price : a. price . map ( |p| format ! ( "{:.4}" , p) ) . unwrap_or_default ( ) ,
274307 size : format ! ( "{:.2}" , a. size) ,
275308 usdc_size : format_decimal ( a. usdc_size ) ,
276309 tx : truncate ( & a. transaction_hash . to_string ( ) , 14 ) ,
@@ -286,11 +319,25 @@ pub fn print_activity(activity: &[Activity], output: &OutputFormat) -> anyhow::R
286319 json ! ( {
287320 "activity_type" : a. activity_type. to_string( ) ,
288321 "title" : a. title,
322+ "slug" : a. slug,
323+ "icon" : a. icon,
324+ "event_slug" : a. event_slug,
325+ "side" : a. side. as_ref( ) . map( |s| s. to_string( ) ) ,
326+ "outcome" : a. outcome,
327+ "outcome_index" : a. outcome_index,
328+ "price" : a. price. map( |p| p. to_string( ) ) ,
329+ "asset" : a. asset. map( |a| a. to_string( ) ) ,
330+ "condition_id" : a. condition_id. map( |c| c. to_string( ) ) ,
289331 "size" : a. size. to_string( ) ,
290332 "usdc_size" : a. usdc_size. to_string( ) ,
291333 "timestamp" : a. timestamp,
292334 "transaction_hash" : a. transaction_hash. to_string( ) ,
293335 "proxy_wallet" : a. proxy_wallet. to_string( ) ,
336+ "name" : a. name,
337+ "pseudonym" : a. pseudonym,
338+ "bio" : a. bio,
339+ "profile_image" : a. profile_image,
340+ "profile_image_optimized" : a. profile_image_optimized,
294341 } )
295342 } )
296343 . collect ( ) ;
@@ -349,8 +396,14 @@ pub fn print_holders(meta_holders: &[MetaHolder], output: &OutputFormat) -> anyh
349396 "proxy_wallet" : h. proxy_wallet. to_string( ) ,
350397 "name" : h. name,
351398 "pseudonym" : h. pseudonym,
399+ "bio" : h. bio,
400+ "asset" : h. asset. to_string( ) ,
352401 "amount" : h. amount. to_string( ) ,
353402 "outcome_index" : h. outcome_index,
403+ "display_username_public" : h. display_username_public,
404+ "profile_image" : h. profile_image,
405+ "profile_image_optimized" : h. profile_image_optimized,
406+ "verified" : h. verified,
354407 } )
355408 } )
356409 . collect ( ) ;
@@ -487,6 +540,9 @@ pub fn print_leaderboard(
487540 "user_name" : e. user_name,
488541 "pnl" : e. pnl. to_string( ) ,
489542 "volume" : e. vol. to_string( ) ,
543+ "profile_image" : e. profile_image,
544+ "x_username" : e. x_username,
545+ "verified_badge" : e. verified_badge,
490546 } )
491547 } )
492548 . collect ( ) ;
@@ -539,6 +595,7 @@ pub fn print_builder_leaderboard(
539595 "volume" : e. volume. to_string( ) ,
540596 "active_users" : e. active_users,
541597 "verified" : e. verified,
598+ "builder_logo" : e. builder_logo,
542599 } )
543600 } )
544601 . collect ( ) ;
@@ -591,6 +648,7 @@ pub fn print_builder_volume(
591648 json ! ( {
592649 "date" : e. dt. to_rfc3339( ) ,
593650 "builder" : e. builder,
651+ "builder_logo" : e. builder_logo,
594652 "volume" : e. volume. to_string( ) ,
595653 "active_users" : e. active_users,
596654 "rank" : e. rank,
0 commit comments