TradingBot | Autonomous stocks trading script | Bot library
kandi X-RAY | TradingBot Summary
kandi X-RAY | TradingBot Summary
This is an attempt to create an autonomous market trading script using the IG REST API and any other available data source for market prices. TradingBot is meant to be a "forever running" process that keeps analysing the markets taking actions whether some conditions are met. It is halfway from an academic project and a real useful piece of software, I guess I will see how it goes :). The main goal of this project is to provide the capability to write a custom trading strategy with the minimum effort. TradingBot handles all the boring stuff. All the credits for the WeightedAvgPeak strategy goes to GitHub user @tg12.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Performs a trade
- Gets the order force open
- Gets the order currency
- Find a config value in the config
- Backtest method
- Fetches market data for a given market
- Calculates the stop limit for a given bidirection
- Find the trade signal for a given market
- Get market info from watchlist
- Get the quote endpoint for a market
- Return argument parser
- Get the MACD for a given market
- Setup logging
- Returns the MACD of a market
- Get MACD for a given market
- Get a map of all open positions
- Reads the configuration file
- Search for market by search term
- Returns the percentage of accounts used in the account
- Close all open positions
- Load market from watchlist
- Close all open positions
- Start the market
- Backtest
- Get market history
- Authenticate the user
TradingBot Key Features
TradingBot Examples and Code Snippets
Community Discussions
Trending Discussions on TradingBot
QUESTION
I am trying to save user API keys to a Django Model with a foreign key of User such that each set of unique API keys has a unique User associated with them in the database. I want a api keys input form to appear when a user who clicks "account" if the user has no associated API keys and a message saying " Your keys have already been entered" if the user does have associated API keys.
I am using the built in Django User Model and I have created my own Model Form in forms.py.
I have tried including user in the Model form and Meta class to no avail. I have tried passing the keys and password as parameters to the model and form before saving. I have tried using instances of the form with commit set to False before adding the User to form.user. I've tried looking up the latest Django documentation but its fragmented and hard to follow.
I'm purposefully leaving out imports unnecessary to this problem.
This is my Models.py:
...ANSWER
Answered 2019-Aug-02 at 16:21There's a few issues with your code, you're mixing instances and classes:
First your
keys_exist()
function is wrong because you usepk=User
in the filter of your query, which doesn't make sense.User
is the class user andpk
is the primary key of yourUserApiDetails
instances, so they can never be equal. You need to test against aUser
instance:
QUESTION
Following error occures
...ANSWER
Answered 2018-Mar-20 at 10:49I use IntelliJ for development and in my "out" directory were old .class files. Some of the java classes already have been deleted, but somehow not in the "out" directory.
As solution I deleted the whole "out" directory.
QUESTION
All of sudden my BOT started failing with this exception today:
Null properties cannot be encrypted. Please assign a default value to the property if you wish to encrypt it.
The error happens when trying to set conversation data and this is the stack trace:
...ANSWER
Answered 2017-Sep-14 at 22:49It turned out to be a problem on the Microsoft side.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TradingBot
Login to your IG Dashboard. This must be in json format.
Obtain an API KEY from the settings panel
If using the demo account, create demo credentials
Take note of your spread betting account ID (demo or real)
(Optional) Visit AlphaVantage website: https://www.alphavantage.co and request a free api key
Insert these info in a file called .credentials
Copy the .credentials file into the ${HOME}/.TradingBot/config folder
Revoke permissions to read the file
You can build the Docker image yourself using the Dockerfile in the docker folder:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page