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)
Metadata
Release files for gwcmodel 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gwcmodel-0.1.1.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gwcmodel-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / gwcmodel-0.1.1.tar.gz
| Download URL | gwcmodel-0.1.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f176572c58738d0485b5c114402f661aef920b7c68e6db1c3a5dde5331483f3
|
|
BLAKE2b-256 checksum How to use checksums |
efdf63e4fac83e572bc637883738ce3bc7cb8c03d6321ea81c9e53c8c8e8e435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / gwcmodel-0.1.1-py3-none-any.whl
| Download URL | gwcmodel-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4acabdb43bfe0ed9a83a6d7504a76861d633d86483cb2374d0ef9098571f3e1a
|
|
BLAKE2b-256 checksum How to use checksums |
e08b8f057f2267bc08040e0adf12d7f425594517625be06a3cc9bc2f27d3dd9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|