The First Unofficial PNGX-API, Ever
NUKU (aka PNGX) is a RESTFul API that retrieves, store and process stock data from PNGX. It formerly part of CrisBot, now a standalone API.
The API retrieve, store, and process financial data from from PNGX.com.pg.
Companies listed on PNGX
Symbol | Company |
---|---|
BSP | BSP Financial Group Limited |
CCP | Credit Corporation (PNG) Ltd |
CGA | PNG Air Limited |
COY | Coppermoly Limited |
CPL | CPL Group |
KAM | Kina Asset Management Limited |
KSL | Kina Securities Limited |
NEM | Newmont Corporation |
NGP | NGIP Agmark Limited |
NIU | Niuminco Group Limited |
SST | Steamships Trading Company Limited |
STO | Santos Limited |
- Historical data
- Current listed stock info
- Near-realtime updates
- RESTful API format
---
v2.0.0
Base URLs:
GET http[s]://pngx-api.christianaugustyn.me
Update an existing pet by Id
GET /api
Request
curl -i -H 'Accept: application/json' https://example.com/api
Params
Parameter | Type | Description |
---|
Response
HTTP/1.1 200 OK
Date: Sat, 02 Oct 2021 03:25:07 GMT
Status: 200 OK
Connection: close
X-Powered-By: Express
Content-Type: application/json
Content-Length: 85
{"symbols":["BSP","CCP","CGA","COY","CPL","KAM","KSL","NCM","NGP","NIU","OSH","S
ST"]}
Update an existing pet by Id
GET /api/v1/stocks
Request
curl -i -H 'Accept: application/json' https://example.com/api/v1/stocks
Params
Parameter | Type | Description |
---|
Response
HTTP/1.1 200 OK
Date: Sat, 02 Oct 2021 03:25:07 GMT
Status: 200 OK
Connection: close
X-Powered-By: Express
Content-Type: application/json
Content-Length: 85
{"symbols":["BSP","CCP","CGA","COY","CPL","KAM","KSL","NCM","NGP","NIU","OSH","S
ST"]}
Update an existing pet by Id
GET /api/v1/historicals/:symbol
Request
curl -i -H 'Accept: application/json' https://example.com/api/v1/historicals/BSP
Params
Name | Location | Type | Required | Description |
---|---|---|---|---|
symbol | param | string | yes | ticker symbol of the prefered stock |
Query Params
Name | Location | Type | Required | Description |
---|---|---|---|---|
date | query | date | no | none |
start | query | date | no | none |
end | query | date | no | none |
field | query | array | no | none |
start | body | integer | no | none |
Response
HTTP/1.1 200 OK
Date: Sat, 02 Oct 2021 03:25:07 GMT
Status: 200 OK
Connection: close
X-Powered-By: Express
Content-Type: application/json
Content-Length: 85
{"symbol": "BSP", "historical": [{}]}
Update an existing pet by Id
GET /api/v1/historicals/:symbol
Request
curl -i -H 'Accept: application/json' https://example.com/api/v1/historicals/HIL
Response
HTTP/1.1 200 OK
Date: Sat, 02 Oct 2021 03:25:07[^1] GMT
Status: 200 OK
Connection: close
X-Powered-By: Express
Content-Type: application/json
Content-Length: 85
{"status":404,"reason":"Not found"}
The entire application is written in JavaScript and run on NodeJS environment.
Nuku uses a number of open source projects to work properly:
- [Moment.js] - Moment.js to manipulate date
- [Date-fn] - to manipulate date
- MongoDB - MongoDB to store stock info
- [node-cron] - Node-cron to to schedule the tasks
- markdown-it - Markdown parser done right. Fast and easy to extend.
- Twitter Bootstrap - great UI boilerplate for modern web apps
- node.js - evented I/O for the backend
- Express - fast node.js network app framework @tjholowaychuk
- Gulp - the streaming build system
- Breakdance - HTML to Markdown converter
- jQuery - duh
- Express
- CORS
- BodyParser
- Mongoose
- MongoDB
- NodeCron
- Path
- Request
- fs
And of course PNGX-API itself is open source with a public repository on GitHub.
Want to contribute? Great!
PNGX-API uses Gulp for fast developing. Make a change in your file and instantaneously see your updates!
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
The original author of PNGX-API is Christian Augustyn
- Linkedin - LinkedIn: Christian Augustyn
- Website - Christian Augustyn
Licensed under the MIT License.
Free Software, Hell Yeah!
© 2023, Christian Augustyn.
TOAST UI products are open source, so you can create a pull request(PR) after you fix issues. Run npm scripts and develop yourself with the following process.
Fork main
branch into your personal repository.
Clone it to local computer. Install node modules.
Before starting development, you should check to have any errors.
git clone https://github.com/{your-personal-repo}/[[repo name]].git
cd [[repo name]]
npm install
Let's start development!
Before PR, check to test lastly and then check any errors. If it has no error, commit and then push it!
For more information on PR's step, please see links of Contributing section.
This software is licensed under the MIT © NHN Cloud.
Types of schedules supported by Schedule:
- Schedule a set of work items across developers with different schedules
- Manage elevator reservations for an apartment building
- Schedule the company ping pong tournment
####For complete documentation visit http://bunkat.github.io/schedule/.
Using npm:
$ npm install schedulejs
Using bower:
$ bower install later
$ bower install schedule
To build the minified javascript files for schedule, run npm install
to install dependencies and then:
$ make build
To run the tests for schedule, run npm install
to install dependencies and then:
$ make test
Releases will be numbered with the following format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
- Breaking backward compatibility bumps the major (and resets the minor and patch)
- New additions without breaking backward compatibility bumps the minor (and resets the patch)
- Bug fixes and misc changes bumps the patch
For more information on SemVer, please visit http://semver.org/.
Have a bug or a feature request? Please open a new issue.
- First documented release.