Friday, December 30, 2022

Daily cryptocurrency income report, 2022-12-29

Daily #cryptocurrency income report, 2022-12-29: -$162.27*





Trading with tokens whose #ACB ('average cost basis') IS WAY ABOVE their current valuation makes for a very neggy daily income report.

Bring. It. 😎😎👏

*does not include auto-restaked yields nor s- nor x-token gains

2022-12-30 Aave AVAX loop APR report

2022-12-30 @AaveAave $AVAX loop APR report





APY 4.33%
APR 31.02%

all yield collected: 5.47 $WAVAX
yields, incept: 2022-11-14
yield collected for 46 days
With $AVAX at $10.81
that is $1.28 collected per day (avg)

Graph pop-answer: removing dead-end paths

Graph pop-answer: the solution is to subtract (sub-)graphs from the FIN graph, and the answer lives on queries.cyp.


To remove the ATOM/OSMO order book, we remove all ratios between the two, thusly:

match (n:Coin { name: 'ATOM'})-[r]-(n1:Coin { name: 'OSMO'})
delete r

To remove all references to $SCRT and $STARS, we remove those tokens from the graph:

match (n:Coin)
where n.name in ['SCRT', 'STARS']
detach delete n

Now, there's a danger here. We are destroying the FIN graph-structure.

An entirely safer approach is to imbue each ratio with a risk-factor, then rank paths by risk. That way, as these order books become viable, we haven't lost these paths as we do with this approach.

Rust pop-answer: pnl fees and commission correction


Most of the work went into the trades.rs library, then into the trade_state.rs-type, particularly around TradeState-initialization.

This made updating ./pnl straightforward.

Valuation, Kujira portfolio: 2022-12-30

Valuation, Kujira portfolio: 2022-12-30


invested: $11,529.16
value: $9,957.22
net gain: -$1,571.94
δ yesterdæg: -$17.18
APR: -67.25%


staked: $346.83
wallet: $1,133.452
order book bids: $5,973.11
Supply: $1,151.39
Borrow: -$351.000
LPs: $1,583.45
ORCA liquidation Bids: $120.000

total assets: $9,957.22
matches value: TRUE
discrepancy: $0.00

PnL


@TeamKujira FIN order books: 2022-12-29


Profit: $49.652
Loss: $247.661
subtotal: -$198.008
fees: $0.001
commission: $0.532
total costs: $0.533

Total profit (or loss): -$198.542 on 16 trades
average: -$12.409 per trade


Assets



Thursday, December 29, 2022

2022-12-30 KUJI arb

One final arb, then I'm OFT! to bed.

./vern, my main man, ./vern suggests the following path:


  • KUJI,ATOM,USK,wETH,axlUSDC,KUJI
So, I kick off this $KUJI-arb with the following order:


The KUJI/ATOM sell-order hits right away, so I place the next order in the arb-path:

OOH! My $ATOM sell-order hit on my $KUJI-arb!


Let's consult ./vern, my main man, ./vern. 


./vern sez: "Well? Go on, then!"

*./vern bein' salty af with meh rn. 🙄

So I place the next order on the $KUJI-arb-path:
  • 2022-12-31 placed: 126.1015 USK -> 131.1917 axlUSDC, BUY at 0.9612 fulfilled

Okay, we've got two different arbs that popped on the axlUSDC/USK. Let's deal with them one at a time.


The first arb is a simple one, trading back-n-forth between USK and axlUSDC. Here I've just 'sold' axlUSDC for USK, so now let's collect the USK then buy axlUSDC at a lower bid.

The second order is on the $KUJI-arb-path.

I checked with ./vern, my main man, ./vern, and ./vern sez: "Go for it!"

So, I place the next order in this arb-path:

  • 2022-12-31 placed: 131.1917 -> _ wETH, BUY at 1175.56 fulfilled


Rust pop-quiz: correct pnl fee and commission computations

Rust pop-quiz

./pnl is computing fees wrongly.

Fix it.

Eheh. 😅

So, less meanly: one way to fix ./pnl is to examine the fees and commissions computations and correct those formulæ.

There's a much simpler way to fix ./pnl fees: use the spreadsheet totals as inputs.

GO TO IT!