Skip to content

Aktiedysten_API is a Python tool (a script/library) that makes it possible to manage an account on Aktiedysten.dk directly through code.

Notifications You must be signed in to change notification settings

ChrisC0O/Aktiedysten_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 

Repository files navigation

Aktiedysten_API

This code is used to access the website: www.aktiedysten.dk. You can buy, sell and more using simple commands.

News:

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!

How to use:

  • Start by going to the Aktiedysten.dk
  • Make an account.
  • Download the API.py.
  • Import the script.
  • Insert your login info.

Code exsample:

Login:

from API import AktiedystenAPI

account = AktiedystenAPI("Username", "Password", "Game")

Buying 10 BTC:

account.buy("CRYPTO", "BTC", 10, "STOCK")

Sell 10 BTC:

account.sell("CRYPTO", "BTC", 10, "STOCK")

Sell everything in portfolio:

account.liquidate_game()

Sell all of a given stock:

account.sell_all("ticker")

All functions returns order json:

{
 'Confirmed': True,
 'Game': 'GAME',
 'Stock': 'BTC',
 'Exchange': 'CRYPTO',
 'OrderInStock': '10',
 'OrderInCurrency': '2013118.9090987504',
 'OrderType': 'Buy'
}

Simble tradebot exsample:

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

All functions

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()

About

Aktiedysten_API is a Python tool (a script/library) that makes it possible to manage an account on Aktiedysten.dk directly through code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages