Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.
/ naga-web-api Public archive

Unofficial python client for NAGA.com social and trading platform.

License

Notifications You must be signed in to change notification settings

meister245/naga-web-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

naga-web-api

Unofficial python client for NAGA.com social and trading platform. The library implements private API calls captured from NAGA.com web user interface.

Disclaimer

I am not associated with NAGA.com. I don't bear any responsibility if you end up losing money as a result of this library. The private API may change at any point in time in the future, use the library at your own risk.

Usage

Install from github:

pip install git+https://github.com/meister245/naga-web-api.git

Market History Collection

No login is required to collect market history data.

Example for data collection:

./scripts/collect_market_data.py

Authenticated Sessions

In order to use trading functionality and create authenticated sessions, a login request has to be inspected in browser developer tools.

After login action on the web UI, the response will contain a password hash. The hashed password value will always be the same.

Example API response: https://api-v2.swipestox.com/user/login

{
    "user_name":"USERNAME",
    "password":"HASHED_PASSWORD_VALUE",
    "device_uuid":"e469e0f03d85gd9365d12891fa842e51",
    "g-recaptcha-response":null,
    "get_user_info":true
}

Broker Accounts

Naga.com offers multiple trading accounts, where each account is a separate logical entity, which requires an individual session to be established for each of the accounts.

By default the DEMO account is used.

Example for listing trading accounts:

./scripts/linked_accounts.py

Trading

Example for opening, updating and closing trades:

./scripts/open_close_trade.py

About

Unofficial python client for NAGA.com social and trading platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages