# Trader Option Rader Mini App (TG React Doge) 規格: - 可以透過 telegram mini app 的 webui 很直覺的設定參數,並提供一個查詢的按鈕,尋找市場上符合條件的交易組合及部位數量 - 參數 - strategy ex: 雙幣 - exchange ex: bybit - symbol ex: BTC-Options(USDC) - spec ex:2FEB24 - amount ex: 10000 usdc - split ex 2 - weighted method ex 1: average 2: weighted - target profit lower bound ex: 15 (%) - target profit higher bound ex 20 (%) ex output data: ```python {106: {'BTC-2FEB24-39000-P': 0.5, 'BTC-2FEB24-39500-P': 0.5, 'port_return': 15.015}} {58: {'BTC-2FEB24-40000-P': 0.5, 'BTC-2FEB24-37750-P': 0.5, 'port_return': 16.015}} {44: {'BTC-2FEB24-39750-P': 0.5, 'BTC-2FEB24-38750-P': 0.5, 'port_return': 16.125}} {77: {'BTC-2FEB24-38000-P': 0.5, 'BTC-2FEB24-40000-P': 0.5, 'port_return': 16.605}} {114: {'BTC-2FEB24-39000-P': 0.5, 'BTC-2FEB24-39750-P': 0.5, 'port_return': 17.275}} {63: {'BTC-2FEB24-40000-P': 0.5, 'BTC-2FEB24-38750-P': 0.5, 'port_return': 18.93}} ``` ex output order file: ```python { "38000": -5000.0, "40000": -5000.0 } ``` 運算描述: 雷達 (依照一些條件:例如換算年報酬率,還有天數,以及資金的配置做搜尋) 描述:\ 搜尋功能以Bybit的USDC賣方選擇權作為標的,提供查詢者以下選項參數來尋找可投資的標的組合: 設定參數為(邊緣價格上限>=,邊緣價格下限<=,剩餘下限天數,>=年化報酬率,投入金額10000) - 搜尋特定天數內的標的組合 \[低於邊緣價格的各種履約價與不同到期天期組合\]; - 設定總資金大小(以USDC計算); - 設定預期的邊緣價格 (預期不會被履約的選擇權價格 - 設定資金在不同標的間的配置比例; - 選擇資金的配置原則:平均分配或倒三角分配; - 計算依邊緣價格以下的可投資標的的預期報酬範圍,並根據此以上條件篩選出符合要求的標的組合。(篩選的範圍依百分比預先設定,而篩選出的標的組合依換算年報酬率由高至低排列)