Sha256: 30b8980995ce57002ac3e39e891bb26cd7975d940e621c4a6587cbe7159ed6e2
Contents?: true
Size: 1.75 KB
Versions: 37
Compression:
Stored size: 1.75 KB
Contents
-## -## Same file for the spreads -## - collapse_key ||= pos.id %i.fa.fa-expand.collapse-expand.floaty-collapse{ id: "gameui-pos-detail-#{collapse_key}" } .maxwidth %table.bordered{ class: pos.long_or_short } %tbody.long-or-short-item %tr %td <b>#{pp_amount pos.outer.strike}</b> %td= pp_amount pos.outer.begin_price %td= pos.outer.begin_delta %td - %td= pp_amount pos.outer.end_price %td= pp_delta pos.outer.end_delta %tr %td <b>#{pp_amount pos.inner.strike}</b> %td= pp_amount pos.inner.begin_price %td= pp_delta pos.inner.begin_delta %td - %td= pp_amount pos.inner.end_price %td= pp_delta pos.inner.end_delta .header.d-flex %ul.mb-0 %li -## yes *100 <b>max gain:</b> #{pp_amount pos.max_gain} :: #{pp_amount pos.max_gain * 100 * pos.q} -# %li -# <b>end_outer,inner_price:</b> #{pp_amount pos.end_outer_price} -> #{pp_amount pos.end_inner_price} -# -# -## yes *100 -# <b>max loss:</b> #{pp_amount pos.max_loss} :: #{pp_amount pos.max_loss * 100 * pos.q} %li <b>Exposure:</b> #{pp_amount pos.max_loss() *100*pos.q()} %li <b>Breakeven:</b> #{pp_amount pos.inner.strike + pos.max_gain()} - ## no *100 %li <b>Net:</b> #{pp_amount pos.net_amount} :: #{pp_amount pos.net_amount() *100*pos.q} <i>#{pp_percent pos.net_percent}</i> - if 'prepare' == pos.status %ul.mb-0 %li <b>next_gain_loss_amount:</b> #{pp_amount pos.next_gain_loss_amount} \:: #{pp_amount pos.next_gain_loss_amount * 100 * pos.q} <i>#{pp_percent pos.next_gain_loss_amount/pos.max_loss*-1}</i>
Version data entries
37 entries across 19 versions & 1 rubygems