API Reference
API Key
If a subscription has been purchased, please setup the API keys as follows. A free-trial API is installed by default
Setting the API Key
To set the api key. This only needs to be run one time. A free API is already installed and this step is only necessary if subscribed to extra market data.
import goldengoose
goldengoose.set_api_key("api_key")
Endpoints for connecting to all assets available from goldengoose-data.
get(stock)
Return a data object for a given symbol.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in goldengoose/stocks.py
13 14 15 16 17 18 19 20 21 22 23 | |
list()
Return a list of all stock symbols available from goldengoose-data.
| Returns: |
|
|---|
Source code in goldengoose/stocks.py
25 26 27 28 29 30 31 32 | |
ggCalendar
Bases: DDict
Source code in goldengoose/internal.py
48 49 50 51 52 53 54 55 56 57 58 | |
dump(start='', stop='', resolution='')
Dump all data for this stock.
:resolution:
| Parameters: |
|
|---|
Source code in goldengoose/internal.py
49 50 51 52 53 54 55 56 57 58 | |
ggNews
Bases: DCont
The global stocks database object. With this object you will be able to access all of goldengoose data's stock data.
Source code in goldengoose/internal.py
39 40 41 42 43 44 45 46 | |
ggStock
Bases: DDict
Source code in goldengoose/internal.py
22 23 24 25 26 27 28 29 30 31 32 | |
dump(start='', stop='', resolution='')
Dump all data for this stock.
:resolution:
| Parameters: |
|
|---|
Source code in goldengoose/internal.py
23 24 25 26 27 28 29 30 31 32 | |
ggStocks
Bases: DCont
The global stocks database object. With this object you will be able to access all of goldengoose data's stock data.
Source code in goldengoose/internal.py
13 14 15 16 17 18 19 20 | |
clock_forwarder(date, days, set_to_before_market=False, set_to_after_market=False)
Forward the given date by N market days.
| Parameters: |
|
|---|
Source code in goldengoose/internal.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
corporateHoliday(today)
Lookup given date to see if it's a market holiday.
| Parameters: |
|
|---|
Source code in goldengoose/internal.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |