Repository navigation
Expand file tree
/
Copy pathcontext7.json
More file actions
22 lines (22 loc) · 1.46 KB
/
Copy pathcontext7.json
File metadata and controls
22 lines (22 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"$schema": "https://context7.com/schema/context7.json",
"url": "https://context7.com/nubraapi/nubra-python-sdk",
"public_key": "pk_20PG2EqCHQNtkdWXgyAS8",
"projectTitle": "Nubra Python SDK",
"description": "Nubra Python SDK enables algorithmic trading, market data retrieval, real-time data streaming, and portfolio management across NSE, BSE, and MCX.",
"folders": [
"docs",
"examples",
"snippets",
"schemas"
],
"rules": [
"Create one client with InitNubraSdk(NubraEnv.UAT, env_creds=True) and pass it to InstrumentData, MarketData, NubraPortfolio and NubraTrader; follow docs/guide/00-setup.md.",
"Read PHONE_NO and MPIN from a local .env file in the working directory or from environment variables; never hardcode credentials.",
"Place orders with trader.create_order(); there is no place_order() method (place_order/ is only a folder name).",
"Orders need an integer refId: resolve it with InstrumentData.get_instrument_by_symbol(symbol, exchange=...) before calling NubraTrader.create_order, and check that the lookup did not return a dict with a msg key (not found).",
"Round every order price to a multiple of tick_size (paise) with the to_tick() helper shown in the trading examples (it is not an SDK method); stratTags is a list with exactly one hyphenated tag.",
"Prices are integers in paise (116770 means Rs 1167.70). Use NubraEnv.UAT for testing and NubraEnv.PROD for live trading.",
"Supports Python 3.7 and newer."
]
}