An Android app for automated options exit strategies (IV percentile, stop-loss & take-profit).
- πΉ Compute IV percentile using FastAPI + yfinance backend
- π Auto-calculate stop-loss & take-profit points
- π Dynamic UI built with Jetpack Compose
- π‘ Network layer via Retrofit + Moshi
- π¨ Material3 design, loading indicators & error handling
This app talks to a FastAPI service deployed on Google Cloud Run:
https://service-name-695533194214.europe-west1.run.app/
Main endpoint:
POST /generate_exit_strategy
Example request body:
```json
{
"symbol": "AAPL",
"strike": 150.0,
"daysToExpiry": 30
}
Go to the Releases page and download the latest profit-targeter-v1.0.0.apk.
- On your Android device, enable "Install unknown apps" or "Allow from this source."
- Open the APK to install and enjoy the app.
# 1. Clone the repo git clone https://github.com/khuangtw/profit-targeter-android.git cd profit-targeter-android # 2. Prepare keystore # Place profit-targeter.keystore into android/app/ # Create keystore.properties in repo root: # storePassword=<your-keystore-password> # keyPassword=<your-keystore-password> # alias=profit-targeter # 3. Build release APK ./gradlew clean ./gradlew assembleRelease # 4. Signed APK is at: # android/app/build/outputs/apk/release/app-release.apk
- Launch the app
- Enter the symbol (e.g.
AAPL), strike price, and days to expiry - Tap Calculate
- View the IV percentile and suggested stop-loss / take-profit points
If your backend URL changes, update it in your network module:
// In ApiClient.kt or NetworkModule.kt private const val BASE_URL = "https://service-name-695533194214.europe-west1.run.app/"
- Fork this repository
- Create a feature branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m "Add some feature") - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for details.