Skip to main content

Python SDK for GWC India API

Project description

GWCModel Python SDK

A simple Python SDK for interacting with the GWC India API.

Installation

pip install gwcmodel

Usage Example

Here's a quick example demonstrating how to use the gwcmodel library:

from gwcmodel.gwc import GWCModel

client = GWCModel(
    api_key="YOUR_API_KEY",
    access_token="YOUR_ACCESS_TOKEN"
)

print("profile")
profile = client.profile()
print(profile)

print("balance")
balance = client.balance()
print(balance)

print("positions")
positions = client.positions()
print(positions)

print("holdings")
holdings = client.holdings()
print(holdings)

print("orderbook")
orderbook = client.orderbook()
print(orderbook)

print("getquote")
getquote = client.getquote({
    "exchange": "NSE",
    "token": "11915"
})
print(getquote)

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

gwcmodel-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

gwcmodel-0.1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file gwcmodel-0.1.1.tar.gz.

File metadata

  • Download URL: gwcmodel-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for gwcmodel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2f176572c58738d0485b5c114402f661aef920b7c68e6db1c3a5dde5331483f3
MD5 b808616a200fa188f177b769434a58e6
BLAKE2b-256 efdf63e4fac83e572bc637883738ce3bc7cb8c03d6321ea81c9e53c8c8e8e435

See more details on using hashes here.

File details

Details for the file gwcmodel-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gwcmodel-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for gwcmodel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4acabdb43bfe0ed9a83a6d7504a76861d633d86483cb2374d0ef9098571f3e1a
MD5 e8e14e08fdb91b72daed2453aef9fcf8
BLAKE2b-256 e08b8f057f2267bc08040e0adf12d7f425594517625be06a3cc9bc2f27d3dd9b

See more details on using hashes here.

Supported by

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