algobulls / pyalgotrading Goto Github PK
View Code? Open in Web Editor NEWOfficial Python Package for Algorithmic Trading APIs powered by AlgoBulls
Home Page: https://algobulls.github.io/pyalgotrading/
License: MIT License
Official Python Package for Algorithmic Trading APIs powered by AlgoBulls
Home Page: https://algobulls.github.io/pyalgotrading/
License: MIT License
Occurred while runnig PT and RT jobs.
Probable cause for this error, data in the queried time is not avaible at alpaca or alpaca is not allowing for trial users
Got this Error 2 times one for PT and one for RT, both on different strategies,
The Instrument given in both the cases was TSLA (this could be a probable cause too if TSLA hist data is not available at Alpaca)
[2023-06-16 22:43:10] Waiting for 49.73 seconds until end of current candle (2023-06-16 13:14:00-04:00)...
[2023-06-16 22:44:08] Received event EXCEPTION. Stopping AlgoBulls Trading Core Engine...
[2023-06-16 22:44:08] Cancelling all open orders (if any)... Starting
[2023-06-16 22:44:08] Ignoring cancel. Order already completed... ac5f856a-678f-48d8-9fb7-429bf6ee8d3a
[2023-06-16 22:44:08] Ignoring cancel. Order already completed... ef17165f-595e-4e65-9908-a2a104b50c97
[2023-06-16 22:44:08] Ignoring cancel. Order already completed... 9a31b38d-066f-4db6-abf0-3e06eece9822
[2023-06-16 22:44:08] Ignoring cancel. Order already completed... f1ffe79e-db4d-4a1c-a9a8-d56aa3dbd04c
[2023-06-16 22:44:08] Ignoring cancel. Order already completed... 55e88853-0e2f-4c13-bafb-59adcdd9b221
[2023-06-16 22:44:08] Cancelling all open orders (if any)... Done
[2023-06-16 22:44:08] Exiting all open positions...
[2023-06-16 22:44:08] Exiting all open positions with order code: ORDER_CODE_INTRADAY (if any)...
[2023-06-16 22:44:23] Querying broker API "get_positions" was unsuccessful even after 10 number of attempts. Please check the above log for exception details
[2023-06-16 22:44:23] [ID:0e33d339377b4d3ca801618f8e4660a7] [SELL] [NASDAQ_EQ:TSLA] Order was exited manually. Not exiting...
[2023-06-16 22:44:23] Exiting all open positions with order code: ORDER_CODE_DELIVERY_T0 (if any)...
[2023-06-16 22:44:23] Exiting all open positions with order code: ORDER_CODE_DELIVERY_T1 (if any)...
[2023-06-16 22:44:23] Exiting all open positions with order code: ORDER_CODE_DELIVERY_T2 (if any)...
[2023-06-16 22:44:23] [User: PA3G7SFZOVVF] Trading session completed
[2023-06-16 22:44:23] Dumping Debug Stack to Python friendly Traceback Format for Python Build Customers: Uncaught exception | Exception Class: <class 'AttributeError'> | Exception Details: 'NoneType' object has no attribute 'items' | Traceback Below:
File "/usr/local/lib/python3.10/site-packages/alpaca/data/historical/stock.py", line 102, in get_stock_bars
return BarSet(raw_bars)
File "/usr/local/lib/python3.10/site-packages/alpaca/data/models/bars.py", line 73, in __init__
parsed_bars[symbol] = [Bar(symbol, bar) for bar in bars]
File "/usr/local/lib/python3.10/site-packages/alpaca/data/models/bars.py", line 73, in <listcomp>
parsed_bars[symbol] = [Bar(symbol, bar) for bar in bars]
File "/usr/local/lib/python3.10/site-packages/alpaca/data/models/bars.py", line 43, in __init__
BAR_MAPPING[key]: val for key, val in raw_data.items() if key in BAR_MAPPING
[2023-06-16 22:44:23] An error has occurred due to which the strategy execution cannot proceed anymore. Reason: 'NoneType' object has no attribute 'items'.
If the reason doesn't help, please double check the tweak parameters. If everything seems fine, please checkout https://community.algobulls.com/ or contact [email protected] for support.
I was trying to upload the strategy EMA Regular order on my algobulls account so that I can perform some backtesting and generate reports according to the tutorial on pyalgotrading repository but there is some constant error which is stopping me from uploading the strategy to my account in the final step. Kindly help me out with it.
strategy_parameters
are set to None then it raises an error in API class.strategy_parameters
. Hence I want to pass a None or an empty dictionary valueHi Team,
Can you please help me in creating an algorithm for Day trading using the Camarilla pivot point strategy?
Regards,
[email protected]
I was following the pyalgotrading tutorial. I copy pasted all the code into strategy_sma_regular_order.py file. When I run the command 'algobulls_connection.create_strategy(StrategySMARegularOrder)' , I get the following error: -
TypeError: Can't instantiate abstract class StrategySMARegularOrder with abstract methods name
I do not understand, why there is a requirement of creating an account with Algobull?
Can't I use it on my own macchine?
We need to setup our repo as per community standards. Here is a GitHub link which tells our current status:
https://github.com/algobulls/pyalgotrading/community
Let's get all ticks there.
https://api.icicidirect.com/apiuser/home
Above is the link for official idirect breeze API Please add it to your list
Currently, the following objects of the AlgoBullsAPI class are not linked to the Strategy Code:
The first time any method of AlgoBulls API is called, these keys are fetched and cached for the corresponding strategy code. However, if the methods are called again for a different strategy code, instead of using a key corresponding to them, the cached keys are used which results in incorrect execution.
The solution to this problem is simple: Link the cached keys to Strategy Code. Fetch cached keys only if the strategy code matches, else, fetch the key from the server.
pnl table
from a CSV and generate Analytics using Quantstats.I am trying to use this function to plot candlesticks for my dataframe.
But the format of arguments is not mentioned properly.
First I was stuck at plot_type argument. To understand it I had to find the code in the repo where it was defined.
Now ,I am finding it difficult to understand the format of indicators required for this function.
So, there is need of examples and additional information on arguments.
pnl_table
order_variety
, i.e Limit Order should have only positive slippage whereas Market Order will have negative slippage as well as positive slippage.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.