Developed by Pavan Kumar, this Ruby-based application assists cryptocurrency traders in managing and calculating risks associated with ByBit's Inverse BTCUSD Perpetual contracts. It features various calculators and a user-friendly interface implemented with Tk and Ruby gems.
- Project Overview
- Features
- Technologies Used
- Project Structure
- Installation
- Usage
- Contributing
- License
- Contact
This desktop application is designed to help traders make informed decisions by providing detailed calculations for strategies such as averaging down and comparing different margin strategies.
- Inverse Perpetual Calculator: Compute liquidation and bankruptcy prices, and other metrics for both long and short positions.
- Averaging Down Calculator: Helps plan additional purchases as the BTC price declines, providing new average entry prices.
- Strategy Comparison: Allows comparison between different trading strategies like Isolated Margin and Cross Margin.
- Programming Language: Ruby
- GUI Toolkit: Tk
- Ruby Gems:
tk
- For the GUI components.terminal-table
- To display tabular data in the terminal.minitest
- For running unit tests on the application.
BybitCalculator/
│
├── assets/
│ └── cal.ico
│
├── lib/
│ ├── calculators/
│ │ ├── averaging_down.rb
│ │ ├── bybit_calculator.rb
│ │ └── strategy_comparison.rb
│ ├── gui/
│ │ ├── averaging_down_tab.rb
│ │ ├── inverse_perpetual_tab.rb
│ │ └── strategy_comparison_tab.rb
│ │ └── main_window.rb
│ └── utilities/
│ └── formatter.rb
│
├── test/
│ ├── calculator_test.rb
│ └── icon_test.rb
│
├── app.rb
├── Gemfile
├── Gemfile.lock
├── LICENSE
└── README.md
Ensure Ruby is installed on your system (Ruby 2.7+ recommended):
- Clone the repository:
git clone https://github.com/ascender1729/BybitCalculator.git cd BybitCalculator
- Install required Ruby gems:
bundle install
To launch the application:
ruby app.rb
Navigate through the tabs to access different calculators for various trading strategies.
Interested in contributing? Here's how you can help:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Submit a pull request.
This project is released under the MIT License. See the LICENSE
file for details.
Pavan Kumar - pavankumard.pg19.ma@nitp.ac.in
LinkedIn: linkedin.com/in/im-pavankumar
Project Link: github.com/ascender1729/BybitCalculator