Skip to main content

No project description provided

Project description

just_design_phase

The just_design_phase package provides a seamless interface for interacting with the Kite Connect API for stock trading on the Zerodha platform.

Installation

To install the just_design_phase package, run the following command:

pip install just_design_phase

Configuration

Before using the just_design_phase package, you must configure your environment with necessary API keys and secrets. Follow these steps to set up your environment:

  1. Environment Variables: Store your Kite Connect API key and secret in a .env file at the root of your project. This file should contain:

    KITE_API_KEY=your_api_key_here
    KITE_API_SECRET=your_api_secret_here
    

Usage

Import the package using the alias jdp and utilize its functions for interacting with the Zerodha Kite Connect API.

Example Imports

import just_design_phase as jdp

Placing Orders

  • Place a Normal Order:

    order_id = jdp.place_normal_order(stock_name="RELIANCE", quantity=1, order_type="BUY")
    
  • Place a Limit Order:

    order_id = jdp.place_limit_order(stock_name="TCS", quantity=2, price=3500, order_type="SELL")
    

Modifying Orders

  • Modify an Order:

    modified_order_id = jdp.modify_order(variety="regular", orderId="your_order_id_here", quantity=2, price=3550)
    

Fetching Account Details

  • Fetch Holdings:

    holdings = jdp.get_holdings()
    
  • Fetch Positions:

    positions = jdp.get_positions()
    

Additional Methods

Include more comprehensive functionalities for trading:

  • Get Stock Price:

    stock_price = jdp.get_stock_price(name="RELIANCE")
    
  • Get Stock Instrument Token:

    token = jdp.get_stock_instrument_token(stock_name="RELIANCE")
    
  • Buy/Sell Intraday Normal Order:

    order_id = jdp.buy_intraday_normal_order(stock_name="INFY", quantity=10)
    
    order_id = jdp.sell_intraday_normal_order(stock_name="INFY", quantity=5)
    
  • Buy/Sell Intraday Limit Order:

    order_id = jdp.buy_intraday_limit_order(stock_name="INFY", quantity=10, price=1500)
    
    order_id = jdp.sell_intraday_limit_order(stock_name="INFY", quantity=5, price=1500)
    
  • Place Stop Loss Market Order:

    order_id = jdp.place_slm_order(stock_name="INFY", quantity=10, order_type="BUY", price=1500)
    
  • Modify Order Properties:

    new_order_id = jdp.modify_order_quantity(variety="regular", order_id="order123", quantity=15)
    
    new_order_id = jdp.modify_order_price(variety="regular", order_id="order123", price=1520)
    
  • Cancel or Exit Orders:

    jdp.cancel_order(order_id="order123")
    
    jdp.exit_orders(order_id="order123")
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

just_design_phase-0.0.15.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

just_design_phase-0.0.15-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file just_design_phase-0.0.15.tar.gz.

File metadata

  • Download URL: just_design_phase-0.0.15.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0

File hashes

Hashes for just_design_phase-0.0.15.tar.gz
Algorithm Hash digest
SHA256 c960adf825ce437eb55e1c73b51216af41c5780adfb18827e55a28b3fc2fc90f
MD5 11550c4926e96c0e6d8a4d74556ebe0d
BLAKE2b-256 26734d8c70f77604597818d421f4ffa900697af7b19711933fd1617672dfc601

See more details on using hashes here.

File details

Details for the file just_design_phase-0.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for just_design_phase-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 7d28bdd74b2c0f2faaf1b62d5f96f3528ea9b5432b77b77d6110568ba350d9ec
MD5 711f49969f06247d187aae198f28cdbf
BLAKE2b-256 e6e357316af36b2c0d1710edd68ac690d9017f8608e97033f987b05ce3b2eabd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page