跳到主要內容

鏈上合成資產

Mirror Finance, A Synthetic Assets Protocol

New tokens for a listed mAsset can be minted by creating a
collateralized debt position (CDP) with either TerraUSD (UST), mAsset or whitelisted collateral tokens as collateral. Also, mAssets can be directly shorted upon opening a CDP to mint sLP tokens. The CDP is essentially a short position against the price movement of the reflected asset, -- i.e. if the stock price of AAPL rises, minters of mAAPL would be pressured to deposit more collateral to maintain the same collateral ratio.

留言

這個網誌中的熱門文章

Git 注意事項

使用 Git 的一些技巧 1. git pull 的時候可以用 --rebase 比較不會有多餘的 merge point 2. 善用 squash commit,squash 完心情都很好 3. commit 之前一定要先 format code 一次,不然多出來的 reformat commit 會很難整理 4. 拆 commit,盡可能讓每個 commit 都可以 build & test,也比較好回到上游 5. 如果 local 修改的整理過的 commit tree 要 rebase 上去就只能用 rebase onto e.g., git fetch upstream git checkout -B local-rebase-branch upstream/feature/binance-futures git rebase -i upstream/main .... 改改改 git push -f origin HEAD -B 會洗掉原本就有的 local branch CS Visualized: Useful Git Commands Code Cleanup: Splitting Up git Commits In the Middle of a Branch Git rebase --onto an overview 30 天精通 Git 版本控管

AS 策略

Avellaneda & Stoikov Original model and our proposed extensions First, let's briefly recap the core equations from the  Avellaneda-Stoikov paper : Original model Reservation price (market price, adjusted toward your target inventory level): r(s,q,t,\sigma)=s-q\gamma\sigma^{2}(T-t) r ( s , q , t , σ ) = s − q γ σ 2 ( T − t ) Optimal spread around reservation price: \delta^{a}+\delta^{b}=\gamma\sigma^{2}(T-t)+\frac{2}{\gamma}ln(1+\frac{\gamma}{\kappa}) δ a + δ b = γ σ 2 ( T − t ) + γ 2 ​ l n ( 1 + κ γ ​ ) Where: s [quote asset] = current mid price q [no unit] = quantity of stocks in inventory of base asset (could be positive/negative for long/short positions) \gamma γ  [1/quote asset] = inventory risk aversion parameter \sigma σ  [quote asset] = volatility T [no unit] = closing time (conveniently normalized to 1) t [no unit] = current time (T is normalized = 1, so t is a time fraction) \delta^{a}, \delta^{b} δ a , δ b  [quote asset]= Bid/Ask spread (they are symmet...

12 月代辦事項

1. 盡快把 bbgo 支援 binance futures 的部分告一段落!!!然後再看看 BBG token work group 能幫些什麼忙,我們 BBG 前陣子上 Polygon 了,可以從幣安買 Matic 出金到 Metamask 換成 WMATIC 用 QuickSwap 來交易~ (備註: Pull #278 ) 2. 研究 Syndica,據瞭解其服務主要提供 Solana 的 RPC node 基礎建設服務加上 CDN,另有類似 Amplitude, GA 的用戶 geo cohort 等分析服務(HTTP request based),Chamath Palihapitiya 的 Social Capital 有投資。 (備註:Ethereum 的類似競品為 infura.io) 3. 看一下 NianticLabs 的  lightship  AR developer kit,大致上跟之前想的差不多。除了深度感測(實體物檔虛擬物)、環境光源(虛擬陰影)、場景重建,主要去瞭解怎麼做到多人同步,這真的很厲害!可惜它和 Unity 綁的比較深.. 而非 UE4 (備註:免費方案到 May, 01, 2022) 4. 讓 xv6 支援 virt-io VGA,看能不能搞出一個有視窗的作業系統。不過 QEMU 好像也是用 SDL2 ? (備註:QEMU 得更新到 6.1 版,記得用 SiFive 的 source 來 build)