This code is used to access the website: www.aktiedysten.dk. You can buy, sell and more using simple commands.
Code has been made more pythonic. This might cause old scripts to crash, therefore check if your script needs refactoring.
Added a create_new_game() feature!
- Start by going to the Aktiedysten.dk
- Make an account.
- Download the API.py.
- Import the script.
- Insert your login info.
from API import AktiedystenAPI
account = AktiedystenAPI("Username", "Password", "Game")account.buy("CRYPTO", "BTC", 10, "STOCK")account.sell("CRYPTO", "BTC", 10, "STOCK")account.liquidate_game()account.sell_all("ticker")All functions returns order json:
{
'Confirmed': True,
'Game': 'GAME',
'Stock': 'BTC',
'Exchange': 'CRYPTO',
'OrderInStock': '10',
'OrderInCurrency': '2013118.9090987504',
'OrderType': 'Buy'
}from time import sleep
account = AktiedystenAPI("Username", "Password", "Game")
while True:
account.buy("CRYPTO", "BTC", 1, "STOCK")
sleep(1)Script buys 1 BTC every second
account.buy()
account.sell()
account.liquidate_game()
account.sell_all()
account.create_new_game()
account.get_game_json()
account.get_currency_in_bank()
account.get_initial_amount()
account.get_user_history()