TheShareGame provides users with a Data-Api. You can use it to retrieve data and analyze it.

To connect with the API, you'll need a Token. To get your Token make a POST request to the following url:

/api/token/

Check down below for more information

Once you got your token you need to include it in the header:
curl -X GET https://www.thesharegame.com/api/trades/2018/5/1/ -H 'Authorization: Token YOUR_TOKEN'

Thanks to HavingAnEdge and James-Smith who made a Python-Wrapper. Check it out


Here is an overview about all available api-calls.

The base url is: https://www.thesharegame.com/api/

If you need more data just message me and I will implement it.

UrlMethodReturn
token/POSTGet your Token, send the following details:
{
"username": "your_username", "password": "your_password"
tsgindex/GETAll Stock-Index Points
share/int:share_id/GETKey-Figures about the share with the given id
shares/GETKey-Figures of all shares
buy/of_share/int:share_id/GETAll buy orders of the share with the given id
sell/of_share/int:share_id/GETAll sell orders of the share with the given id
your/buy/GETAll of your buy orders
your/sell/GETAll of your sell orders
your/depot/GETAll of your depot positions
share/int:share_id/depot/GETDepot of the share with the given id
fonds/GETAll fonds with its memebers
futures/tsgx/GETAll Futures
trades/int:year/int:month/int:day/GETAll Trades of the given day
bonds/GET, POSTGet Data about all bonds or buy a new one

You need to send the data as following:
{
"value": 100000,
"runtime": 3,
"private_depot": true,
}

credits/GET, POSTGet Data about all credits or take a new one

You need to send the data as following:
{
"value": 100000,
"runtime": 10,

}

month/int:share_id/GETMonthly Stats of the share by the given id
past/volumes/int:share_id/GETPast Share, Buy & Sell volume of the share by the given id
past/figures/int:share_id/GETPast key figures of the share by the given id
market/stats/GETReturns all past Data about the Market
past/share_price/int:share_id/GETReturns Bid,Share-Price & Ask of every 5-Min Tick. Currently limited to the last 1000 entries
order/buy/ or order/sell/POST, DELETEEither create a BuyOrder or delete an existing one. You need to send the data as JSON and in the following structure for creating an order:

{
"orders_of_share": 2,
"price_per_share":5,
"amount": 200, "pd_order": true // optional default is false
}

For deleting: {
"id": 1
}

month/stats/mm/int:month/yy/int:year/GETReturns all Month Stats for all shares of the given month
highscore/growth/GETReturns the current growth highscore
highscore/size/GETReturns the current size highscore
liquidation/GETReturns current liquidations
capital_reduction/GETReturns capital reductions of the past
fine/GETReturns all fines
compensation/GETReturns all compensations
ban/GETReturns all bans
chat_ban/GETReturns all chat bans
unread/GETReturns the amount of your unread messages, notifications, forum posts & articles
market/average/GETReturns the average book value, fair book value, tc, cdgr, free float and market capitalization
market/sum/GETReturns the total book value, fair book value, tc, and market capitalization of the market