GithubHelp home page GithubHelp logo

arshkumarsingh / margin-calc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 25 KB

Margin Calc is a Rust-based application that provides a graphical user interface (GUI) for fetching and displaying margin information for options trading using the Kite Trade API.

License: MIT License

Rust 100.00%
kiteconnect

margin-calc's Introduction

Margin Calc

Margin Calc is a Rust-based application that provides a graphical user interface (GUI) for fetching and displaying margin information for options trading using the Kite Trade API.

Features

  • Fetch and display option symbols.
  • Retrieve and display margin information for selected option symbols.
  • Automatic refresh of symbols every 60 seconds.
  • Error handling and display for API requests.

Requirements

  • Rust (latest stable version)
  • Cargo (latest stable version)
  • Kite Trade API credentials (API key and access token)

Installation

  1. Clone the repository:

    git clone https://github.com/arshkumarsingh/margin-calc
    cd margin-calc
  2. Build the project:

    cargo build

Usage

  1. Run the application:

    cargo run
  2. Enter your Kite Trade API credentials:

    • API Key
    • Access Token
  3. Refresh symbols and fetch margin information:

    • Click "Refresh Symbols" to load available option symbols.
    • Select a symbol from the dropdown.
    • Click "Get Margin" to fetch and display margin information for the selected symbol.

Project Structure

  • src/api.rs: Contains functions for making API requests to the Kite Trade API.
  • src/gui.rs: Implements the GUI using eframe and egui for interaction with the user.
  • src/main.rs: Entry point for the application, setting up and running the GUI.

Dependencies

  • reqwest: For making HTTP requests.
  • serde: For deserializing JSON responses.
  • eframe and egui: For building the graphical user interface.
  • tokio: For asynchronous runtime.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any changes.

License

This project is licensed under the MIT License.

Contact

For any questions or issues, please open an issue on the GitHub repository.


margin-calc's People

Contributors

arshkumarsingh avatar

Watchers

 avatar

Forkers

shabbirhasan1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.