Skip to main content

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")
    

Metadata

Release files for just_design_phase 0.0.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for just_design_phase 0.0.16
File Size Uploaded
just_design_phase-0.0.16.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for just_design_phase 0.0.16
File Interpreter ABI Platform
just_design_phase-0.0.16-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / just_design_phase-0.0.16.tar.gz

Download URL just_design_phase-0.0.16.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fefe8763f4bba0bdb1e39caf28f1f4a956849b05882e9f423f1e8d310b63d753
BLAKE2b-256 checksum
How to use checksums
2ae0624edad57884abb207d1b0b2746e96084083e0d094d6cf0d7643763fa0ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0

Release files / just_design_phase-0.0.16-py3-none-any.whl

Download URL just_design_phase-0.0.16-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99b2ec2616303194c1505c8007dcefa5f0d3e388622c76d7e781d3b6a993f804
BLAKE2b-256 checksum
How to use checksums
fcbade1ab5702b474e7d45a217fe08a92a84a9c97090079bd2abc11c163841b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0

Release history Release notifications | RSS feed

This release

0.0.16 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page