instrument database class
More...
|
def | __init__ (self) |
|
def | __del__ (self) |
|
def | ptr (self) |
|
def | reconfig (self) |
| reconfigure library
|
|
def | get_by_alias (self, alias) |
| gets instrument by its alias More...
|
|
def | get_by_name (self, name, board, exch) |
| gets instrument by its name and class More...
|
|
def | get_by_id (self, instr_id) |
| gets instrument by its instr id More...
|
|
def | get_by_isin (self, isin, board, exch, cur) |
| gets instrument by ISIN More...
|
|
def | add (self, alias, name, board, exch) |
| create instrument More...
|
|
instrument database class
◆ add()
def xroad.instrdb.InstrDB.add |
( |
|
self, |
|
|
|
alias, |
|
|
|
name, |
|
|
|
board, |
|
|
|
exch |
|
) |
| |
create instrument
- Parameters
-
[in] | alias | - instrument alias |
[in] | name | - instrument name |
[in] | board | - instrument board |
[in] | exch | - exchange |
- Returns
- tuple (Instr, created) - Instr -
- See also
- Instrument, created - true - created, false - returned old one
◆ get_by_alias()
def xroad.instrdb.InstrDB.get_by_alias |
( |
|
self, |
|
|
|
alias |
|
) |
| |
gets instrument by its alias
- Parameters
-
[in] | alias | - instrument alias |
- Returns
- See also
- Instrument
◆ get_by_id()
def xroad.instrdb.InstrDB.get_by_id |
( |
|
self, |
|
|
|
instr_id |
|
) |
| |
gets instrument by its instr id
- Parameters
-
- Returns
- See also
- Instrument
◆ get_by_isin()
def xroad.instrdb.InstrDB.get_by_isin |
( |
|
self, |
|
|
|
isin, |
|
|
|
board, |
|
|
|
exch, |
|
|
|
cur |
|
) |
| |
gets instrument by ISIN
- Parameters
-
[in] | isin | - instrument ISIN |
[in] | board | - instrument board |
[in] | exch | - exchange |
[in] | cur | - currency |
- Returns
- See also
- Instrument
◆ get_by_name()
def xroad.instrdb.InstrDB.get_by_name |
( |
|
self, |
|
|
|
name, |
|
|
|
board, |
|
|
|
exch |
|
) |
| |
gets instrument by its name and class
- Parameters
-
[in] | name | - instrument name |
[in] | board | - instrument board |
[in] | exch | - exchange |
- Returns
- See also
- Instrument
The documentation for this class was generated from the following file:
- /home/dmitryme/dev/xroad/release/sdk/python/xroad/instrdb.py