vegaprotocol/vega-market-sim

SLA agent support and visualisations

Closed this issue · 0 comments

Some validation / visualisation runs for SLA (will need more agents):

  1. An LP A posts volume that just meets the SLA, no more, no less(*) vs. an LP B that is halfway from the SLA to full volume on the book all the time (so if the SLA on the market is 90% we have SLA posting volume 90% of the time and SLA B posting volume 95% of the time). They post equally competitive volume. Visualise their LP fee income for each epoch.
  2. An LP A posts volume that just meets the SLA, no more, no less. An LP B posts volume that is SLA - 10% of the time, i.e. if. the market SLA is 95% LP B posts only 85% of the time. Visualise their LP fee income for each epoch. Visualise their LP bond balances and virtual stakes. We should see LP B’s bond bleeding to 0 and no LP fee income for them.
  3. LPs A and B post volume that meets the SLA exactly but LP A’s volume is priced more competitively. Visualise their LP fee income for each epoch.
  4. LP A posts volume that meets the SLA. The feeCalculationTimeStep (when it is a netparam(**)) is set to 0, vs 1min vs 1h vs 6h. Visualise the LP fee income for each epoch for each value and check it looks sane.

(*) One option to code this is that every period of time the agent flips a biased coin and decides whether to have volume on the book or not.
(**) I think at the moment it’s a market param but that should change for validation purposes.