Skip to content

Commit

Permalink
added input amount metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Jul 8, 2024
1 parent 90c4222 commit 8407faa
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions strategies/wlth/wlth-limit-order-single.rain
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,30 @@ charts:
- label: Price
value: 0.3.2
unit-suffix: " WLTH"
description: 'Unit price, USDC per WLTH (stack item 0.3.2)'
description: 'Unit price, WLTH per USDC (stack item 0.3.2)'
- label: Units
value: 0.3.3
unit-suffix: " USDC"
description: 'Units purchased (stack item 0.3.3)'
description: 'Units purchased (stack item 0.3.3)'
- label: Total Price
value: 0.3.4
unit-suffix: " WLTH"
description: 'Amount of WLTH recevied.'
Buy USDC, sell WLTH single limit order:
scenario: limit-orders.sell.metric
metrics:
- label: Price
value: 0.3.2
unit-suffix: " USDC"
description: 'Unit price, WLTH per USDC (stack item 0.3.2)'
description: 'Unit price, USDC per WLTH (stack item 0.3.2)'
- label: Units
value: 0.3.3
unit-suffix: " WLTH"
description: 'Units sold (stack item 0.3.3)'
description: 'Units sold (stack item 0.3.3)'
- label: Total Price
value: 0.3.4
unit-suffix: " USDC"
description: 'Amount of USDC recevied.'
deployments:
base-wlth-buy:
scenario: limit-orders.buy.prod
Expand Down Expand Up @@ -160,7 +168,8 @@ deployments:
#plottables-metric
amount io-ratio: ,
_: io-ratio-1,
_: ouptut-amount-1;
_: ouptut-amount-1,
input-amount-1: mul(io-ratio-1 ouptut-amount-1);

#get-trade-count-prod
trade-count-key: hash(order-hash() count-key),
Expand Down

0 comments on commit 8407faa

Please sign in to comment.