Do you take trading fees into account when going for small profits? On coinbase buy and sell market orders total 1.2% in fees before any profit is made.
Great video! When you are adding "async def main():" in front of "async with stream as receiver:"; what IDE are you using to get it to return a value without the "async def main(): in front"? I am using Jupyter inside of VS Code and tried just in Jupyter and cannot recreate. Thanks!
Hey there, loved the video, but i think you made a small error when you checked the ROC, you checked if the -1'st was above 0 and not if the -2 was below 0. (You meant to, but the code says otherwise) Lemme know if I'm wrong.
Algovibes, question! How do you get the quanity updated based on what it is avaialble in your binance account. I am referring to the opportunity to let's say buy 50, then selling 50 but 0.1 of profit, then you can buy again but instead of 50, you are buying 50.1 and so on and so on. Is there a way to update that in the while loop? thanks!
That's just the stream which you can find in the Binance API docs. I am using another stream e.g. in this one here: ruclips.net/video/mDNIAkEZChg/видео.html or here: ruclips.net/video/PN56q2xZ2p8/видео.html
Is this the same thing as Binance P2P arbitrage trading? Where can find resources/codes to build the bot that automates the process of finding prices or arbitrage opportunities.? Thanks 🙏
@@Algovibes Thank you! I will look into your videos . Where can I find developers who can build Binance P2P arbitrage trading bot. I tried Fiverr but it seems kind of odd/scammy, they asked me to send them $1000 crypto to purchase API
Hello Ago. Thanks for this tutorial. it is great tutorial. I have a quick question. I generated an order logic and wanted to test it before real order. I used create test order it brings me empty object. The empty object is really nonsense. is there a way for testing before real order? Thanks
I'm receiving an SSLCertVerificationError at 04:00 (unable to get local issuer certificate (_ssl.c:1129) Any idea on how to resolve this? I'm running JupyterLab, just like you.
Wow, great content! I am having trouble with the "data= await receiver.recv()", the code becomes stuck and won't give the data, once cancelled i only says "Cancelled error", anyone's got any idea what happens?
Can you check the approach in this one: ruclips.net/video/OX5eDJDtqhc/видео.html or this one: ruclips.net/video/mDNIAkEZChg/видео.html Thanks a lot in advance!
I didn't build a cryptobot with SMAs yet, but these videos will help you in implementing it: ruclips.net/video/X50-c54BWV8/видео.html and ruclips.net/video/lNvJXKXUQ_U/видео.html Let me know if these are helpful for you!
bro, i've been watching many videos from your channel about python trading bot and now I'm about to try something. This is the first time I am downloading Python, could you suggest the first video from you I should watch? There is any video from you for noobz? and last but not least, can we test the bot in a virtual market or something not live? where? thanks and F+!
Thank you buddy for watching my videos. Yes I have a whole playlist on basic python: Python Introduction. Also I recommend to check out the Python for Finance playlist.
@@Algovibes FanSimple8 Indicator applies a set of 3 moving averages with different parameters. Its 55-day moving average is used for determining the intraday market trends. Therefore, the price must be closed above the 55 MA for long entries and should remain below the 55 MA for short entries. For entry confirmation, we need to look for its crossover signals between 5 and 21 MA.
5 MA moves above the 21 MA represent the bullish crossover signal and considered as a confirmation for the long entry. For short entry confirmation, 21 MA value must be greater than 5 MA. Look for opposite crossover signals to your trade entries for determining potential trade exit areas.
FanSimple8 Indicator: Buy Condition Price candle closes above the 55 MA level 5 MA moves above the 21 MA Buy triggers when the above conditions are met Set stop loss below the current 55 MA level Exit long whenever 5 MA moves below the 21 MA
FanSimple8 Indicator: Sell Condition Price candle closes below the 55 MA level 21 MA moves above the 5 MA Sell triggers when the above conditions are met Set stop loss above the current 55 MA level Exit short whenever 21 MA moves below the 5 MA
Hi Algovibes, Thank you for all your videos. Really informative. I am trying to use the above method to stream kline data but I am running into errors regarding the closing price (the kline data presents OOHLC data as a dictionary within the dictionary). Any amendments you suggest to fix this? My error when running code is "c is not in index' Thank you
Hi mate, happy to read. Thanks a lot! Please check out the newer videos in the cryptobot playlist. But this approach should also still work. It seems like you didn't define the column names properly in the first place.
Congrats for the channel, very instructive and fun to watch! Is there a small typo in the line (ta.momentum.roc(df.Price,30).iloc[-2]:)? Should't it be (ta.momentum.roc(df.Price,30).iloc[-2]
Thanks mate. No it doesn't. You would need e.g. a cloud to run it fully automatically. I have some stuff on how to run Python scripts on the Google Cloud Platform if you are interested in those topics.
As you are new here: Welcome! :-) I have covered that error at minute 09:02. If you are not using Jupyter you need to do some amendments to the script as shown there. BTW as my videos are rather longer I am using timestamps so that you can navigate through the video.
@@tarcisioallyson2821 You can also use a sell order for entries ... it is called shorting (you make profit when price goes down) ... But I would not recommend doing that because of the risk involved ...
Hello, many thanks for all very interesting and usefull videos. A question. Whats the difference between using the SQLite to store data and only using the pandas dataframe?
Yes, is there a way that I can do what you do in your videos but instead of monitoring just 1 pair I can monitor multiple pairs into the same python file and run the strategy for those multiple pairs?
Wow 🔥😳 Great content once again. Usually I never subscribe any channels as they spam by posting useless contents. But your channel is exceptional. Now subscribed with ❤️ If possible post a python crypto trading bot using grids. Many apps are there but still our own code have more value 😂
Thank you very much man. Didn't have exposure to bybit yet. I have videos on how to interact with crypto APIs in general tho. Be invited to check out the cryptobot playlist.
Thanks mate. Can you please check the newer videos in the cryptobot playlist? Nest Asyncio should do the trick: ruclips.net/video/OX5eDJDtqhc/видео.html
Welcome buddy! I am occasionally using bots as there are no bots which work all the time. The far more powerful thing about programming is getting better access to more information and make better trading decisions (e.g. which crypto did just cross a certrain threshold in terms of technical analysis). The bots I am using are similar to the strategies I am publishing here but contain more technicals and risk management - so just a combination of multiple videos I released in this playlist.
If you are not using Jupyter this problem is occuring. I covered this problem in this video at around the 9th minute :D Please watch the section again and let me know if this is solving your problem.
@@Algovibes Yeah, sorry... :D its workin but rn, i get only one column with price and the code exit urself (without error, its like only do a one time response from socket and end it)( im not from country where is eng native language, so learnin only form youtube, netflix etc... :D )
@@YouLolNotLolYou Yeah that is because you don't request the data within an infinite loop probably. You have a nice day as well and thanks for your kind words :-)
Awesome to read :-) BTW I have loads of other stuff on that topic in my cryptobot playlist. Be kindly invited to check that out and let me know what you think!
Hi, love your content and looking forward to the next one with the indicators calculated over a longer timeframe. Hope to see you trade some of them ‘I don’t really care’ tokens then ;)
Thanks a bunch mate! Have you checked out the video on implementing a Trailing stop loss? Might be helpful for you: ruclips.net/video/V6z1ME3-0_I/видео.html
@@Algovibes yeaaah, i mean, Bitcoin Logarithmic Growth Curves, like this one www.lookintobitcoin.com/charts/bitcoin-logarithmic-growth-curve/, my bad I wrote logistic regression... arrrfff
@@Algovibes I mean, that you used minitick data, but if I use klines data, then the response is returned in a way { "e": "kline", // Event type "E": 123456789, // Event time "s": "BTCUSDT", // Symbol "k": { "t": 123400000, // Kline start time "T": 123460000, // Kline close time "s": "BTCUSDT", // Symbol "i": "1m", // Interval "f": 1 and etc. Thus I cant get by .loc any data under the 'k'. When I used .loc[k][0][s] - somehow it returned value I am looking for, but only with a mistake :(
Excuse me in this strategy already in third step I have an error createframe is not defined I have try to defined but I can't see the df data. also this code is not on drive This is the command: async with stream as receiver: while True: data = await receiver.recv() data = json.loads(data)['data'] df = createframe(data) print(df) This is the log: NameError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_25980\1403449384.py in 3 data = await receiver.recv() 4 data = json.loads(data)['data'] ----> 5 df = createframe(data) 6 print(df) NameError: name 'createframe' is not defined
hello i try to make bot with your tuto but i got this print(order) ^ SyntaxError: invalid syntax just after the order. i dont saw the error can some one tell me what is the error thanks.
Hello, many thanks for all very interesting and usefull videos. A question. Whats the difference between using the SQLite to store data and only using the pandas dataframe?
17:09 ... arent you missing a '< 0' after the n-2?
Yes! Good catch.
I'd love to see what you would do to build out a full technical analysis version that streams one a minute or so, and uses the longer term RSI.
Hi mate,
I was using technical indicators in this one here:
ruclips.net/video/X50-c54BWV8/видео.html
One of the finest youtube channel.. hope u get more views ..
Thank you so much man!
Sir how can we run multiple symbols in the programme
Please help me out
Do you take trading fees into account when going for small profits? On coinbase buy and sell market orders total 1.2% in fees before any profit is made.
You should take them into account ofc but 1.2% is wrong. On Binance its about 10 times smaller than this.
Great video! When you are adding "async def main():" in front of "async with stream as receiver:"; what IDE are you using to get it to return a value without the "async def main(): in front"? I am using Jupyter inside of VS Code and tried just in Jupyter and cannot recreate. Thanks!
Hi mate, can you pass me a timestamp? Helps me to get to the point you are struggling with. Thx in advance.
He's talking about the way you stream data. It has been deprecated. It is better to use an asynchronous function and BinanceSocketManager
I have commented the full code for a .py file. Compatible with the latest websockets and python 3.10
@@RubiconDota where did you comment this mate ? I can't seem to stream my data either
sir can you make buy and sell alert on random indicators on tradingview
Hi, could you elaborate on your request? Thx in advance!
Please can this build coded on a users computer or is for self. Thank you
Could you elaborate?
in the video , was the coding only for your computer? Thank you
Still getting an "engine" error.
Can you please help with this?
Even the engine package isn't being installed.
Can you elaborate?
@@Algovibes I'm getting this error everytime. keyerror: "none of [index(['s', 'e', 'p'], dtype='object')] are in the [columns]"
Hey there, loved the video, but i think you made a small error when you checked the ROC, you checked if the -1'st was above 0 and not if the -2 was below 0. (You meant to, but the code says otherwise) Lemme know if I'm wrong.
Can you pass me a timestamp pls? Happy to check that!
@@Algovibes Ofc, 17:07 i believe you are not checking if the iloc[-2] is below 0.
Algovibes, question! How do you get the quanity updated based on what it is avaialble in your binance account. I am referring to the opportunity to let's say buy 50, then selling 50 but 0.1 of profit, then you can buy again but instead of 50, you are buying 50.1 and so on and so on. Is there a way to update that in the while loop? thanks!
Hi buddy,
You can pull your current balances with:
client.get_account()
Is this what you are looking for?
@@Algovibes Yes! I also found out you can update quantity by updating the ammount of asset you have for a certain token
is the datastream link the same for everyone? or do i find my personal link
That's just the stream which you can find in the Binance API docs.
I am using another stream e.g. in this one here:
ruclips.net/video/mDNIAkEZChg/видео.html
or here:
ruclips.net/video/PN56q2xZ2p8/видео.html
@@Algovibes thank you great videos!
SyntaxError: 'async with' outside async function
Process finished with exit code 1
Anybody have this issue? I tried in PyCharm
any luck?
@Preston Eckhardt for another similar comment from Mujib Nashikha Algovibes replied....😊🙏🏻
i have try it, but in muinutes 4, ihave an error SyntaxError: 'async with' outside async function, how tu solved it?
I am explaining at around minute 9 how to run this script if you are not using Jupyter Notebook.
Hej
Thank for useful video.🙏
I have found a problem with TA-library. I installed it but could not import in Jupytor notebook.
Thanks for watching buddy. What are you struggling with?
Is this the same thing as Binance P2P arbitrage trading? Where can find resources/codes to build the bot that automates the process of finding prices or arbitrage opportunities.? Thanks 🙏
Hi, no it isn't. Be invited to check out my videos in the cryptobot playlist. You should find a lot of valuable resources there.
@@Algovibes Thank you! I will look into your videos . Where can I find developers who can build Binance P2P arbitrage trading bot. I tried Fiverr but it seems kind of odd/scammy, they asked me to send them $1000 crypto to purchase API
Hello Ago. Thanks for this tutorial. it is great tutorial. I have a quick question. I generated an order logic and wanted to test it before real order. I used create test order it brings me empty object. The empty object is really nonsense. is there a way for testing before real order? Thanks
Hi mate,
can't you just work with a datastream and then store the buy and sell prices in a list/array/db each time a trade has been done?
I'm receiving an SSLCertVerificationError at 04:00 (unable to get local issuer certificate (_ssl.c:1129)
Any idea on how to resolve this? I'm running JupyterLab, just like you.
On macOS go to Macintosh HD > Applications > Python x.x folder > double click on "Install Certificates.command" file
Awesome of you that you solved it yourself and provided the solution here! Thanks a lot.
Wow, great content! I am having trouble with the "data= await receiver.recv()", the code becomes stuck and won't give the data, once cancelled i only says "Cancelled error", anyone's got any idea what happens?
Can you check the approach in this one:
ruclips.net/video/OX5eDJDtqhc/видео.html
or this one:
ruclips.net/video/mDNIAkEZChg/видео.html
Thanks a lot in advance!
how would moving averages be implemented
I didn't build a cryptobot with SMAs yet, but these videos will help you in implementing it:
ruclips.net/video/X50-c54BWV8/видео.html
and
ruclips.net/video/lNvJXKXUQ_U/видео.html
Let me know if these are helpful for you!
How do I short with the binance python API?
client.create_margin_loan()
client.repay_margin_loan()
Do I just replace the things after "order = " with that?
Ad hoc I am not 100% sure. I will cover that in the future for sure.
bro, i've been watching many videos from your channel about python trading bot and now I'm about to try something. This is the first time I am downloading Python, could you suggest the first video from you I should watch? There is any video from you for noobz? and last but not least, can we test the bot in a virtual market or something not live? where? thanks and F+!
Thank you buddy for watching my videos. Yes I have a whole playlist on basic python: Python Introduction. Also I recommend to check out the Python for Finance playlist.
May I know which editor you are using for the scripting?
Sure. Using Jupyter Notebook.
Nice video.Please I'll like to know if it is possible to automate Binance convertion(converting from one crypto to another) with Python. If so, how?
How do I drop the first row of dataframe, so it doesnt become too big?
Before you are appending new data you could use iloc to just pick the desired amount of rows.
@@Algovibes thanks, i will try to figure it out using iloc :) btw nice python skills
Hello is it possible to make automatic robot based on 3 moving average??
Yes. I actually wanted to cover a simple MA as well on this channel.
@@Algovibes FanSimple8 Indicator applies a set of 3 moving averages with different parameters. Its 55-day moving average is used for determining the intraday market trends. Therefore, the price must be closed above the 55 MA for long entries and should remain below the 55 MA for short entries. For entry confirmation, we need to look for its crossover signals between 5 and 21 MA.
5 MA moves above the 21 MA represent the bullish crossover signal and considered as a confirmation for the long entry. For short entry confirmation, 21 MA value must be greater than 5 MA. Look for opposite crossover signals to your trade entries for determining potential trade exit areas.
FanSimple8 Indicator: Buy Condition Price candle closes above the 55 MA level
5 MA moves above the 21 MA
Buy triggers when the above conditions are met
Set stop loss below the current 55 MA level
Exit long whenever 5 MA moves below the 21 MA
FanSimple8 Indicator: Sell Condition Price candle closes below the 55 MA level
21 MA moves above the 5 MA
Sell triggers when the above conditions are met
Set stop loss above the current 55 MA level
Exit short whenever 21 MA moves below the 5 MA
Hi Algovibes, Thank you for all your videos. Really informative.
I am trying to use the above method to stream kline data but I am running into errors regarding the closing price (the kline data presents OOHLC data as a dictionary within the dictionary). Any amendments you suggest to fix this? My error when running code is "c is not in index'
Thank you
Hi mate, happy to read. Thanks a lot! Please check out the newer videos in the cryptobot playlist. But this approach should also still work. It seems like you didn't define the column names properly in the first place.
Greatfulll, but im totaly noob in Python. Can yo take translate this in C#, VB, C++ ?
VB is the only one of those where I have some experience so I can't tell. I know that you can use Python & JS. Rest: No idea. Sorry!
Congrats for the channel, very instructive and fun to watch! Is there a small typo in the line (ta.momentum.roc(df.Price,30).iloc[-2]:)? Should't it be (ta.momentum.roc(df.Price,30).iloc[-2]
Thank you mate! puh its been like 3 years since I recorded this...you got a timestamp for me pls?
isn't 9443 only for the futures trading api?
Nope
Getting error 1013 . Lot size. Whats is the fix for this
Solution is pretty straightforward: Increase the lot size. You are placing an order below the minimum required size.
Already tried it but it getting the same. I made a xrpusdt.
Nice work man.... dose it work when your device is off.
Thanks mate. No it doesn't. You would need e.g. a cloud to run it fully automatically. I have some stuff on how to run Python scripts on the Google Cloud Platform if you are interested in those topics.
Yeah sure if you have some tutorial videos about cloud bot..
Please I am new here... I keep getting an error saying;
async with stream as receiver:
SyntaxError: 'async with' outside async function
As you are new here: Welcome! :-)
I have covered that error at minute 09:02. If you are not using Jupyter you need to do some amendments to the script as shown there.
BTW as my videos are rather longer I am using timestamps so that you can navigate through the video.
Nice tutorial. By the way! Can we only use buy order for entries?
Thanks Buddy,
can you elaborate?
@@Algovibes Sorry, I'm new in critpo's world.
@@tarcisioallyson2821 You can also use a sell order for entries ... it is called shorting (you make profit when price goes down) ... But I would not recommend doing that because of the risk involved ...
Great your tutorials, i'm receiving an "RuntimeError: This event loop is already running", why?....thanks a lot!
Hi buddy, thanks a lot :-)
Did you follow the instructions at around minute 9? Which IDE are you using?
Hello, many thanks for all very interesting and usefull videos. A question. Whats the difference between using the SQLite to store data and only using the pandas dataframe?
It was just a small project as someone was asking to implement a SQL DB to trading. You can do both.
Hey, again thx for this awesome vid. I ran into a Problem with "df.columns=[...] " but running "df.rename(columns=[...]" fixed it for me!
Thanks for watching man. Nice, that you solved the problem and shared your solution!
hallo programmierst du einem auch sachen? gutes video
Danke dir :-) Ne, das mache ich nicht. Bzw. noch nicht :D Vielleicht irgendwann wenn ich mehr Zeit habe. BTW abonniere gerne um mich zu unterstützen.
@@Algovibes mach ich fanke dir trotzdem habe eben ne idee fürn seeeehr gutes Projekt und wir bräuchten noch n vertrauenswürdigen Programmierer
hey! is there a way that i can conttact you personaly? Discord maybe?
Only via the comment section currently. How can I help?
Yes, is there a way that I can do what you do in your videos but instead of monitoring just 1 pair I can monitor multiple pairs into the same python file and run the strategy for those multiple pairs?
And my other question is how can I instead of buying a amount of an asset I buy with all the tether that I have In my account
So I saw you sell at 0.02% profit, isn't that very low?
It is right above the fees of 0.015% - That was the idea.
@@Algovibes Awesome, thanks! Do you think it's feasible to write such a bot with Java?
Wow 🔥😳
Great content once again. Usually I never subscribe any channels as they spam by posting useless contents. But your channel is exceptional. Now subscribed with ❤️
If possible post a python crypto trading bot using grids. Many apps are there but still our own code have more value 😂
Hey man, thanks a lot for your subscription. Really appreciate it!
Also thanks for the suggestion. I noted that!
absolutley great video! would the process be the same for the bybit exchange? thanks so much for the info :D
Thank you very much man. Didn't have exposure to bybit yet. I have videos on how to interact with crypto APIs in general tho. Be invited to check out the cryptobot playlist.
@@Algovibes ok, It seems my code works (for now ;)) thanks for info!
Really nice video.
Can you point me out what I'm doing wrong. I keep getting the error "async with outside async function" I'm using Spyder IDE.
Thanks mate. Can you please check the newer videos in the cryptobot playlist? Nest Asyncio should do the trick:
ruclips.net/video/OX5eDJDtqhc/видео.html
Thank you for your videos. Do you actually use these bots?
Welcome buddy!
I am occasionally using bots as there are no bots which work all the time. The far more powerful thing about programming is getting better access to more information and make better trading decisions (e.g. which crypto did just cross a certrain threshold in terms of technical analysis).
The bots I am using are similar to the strategies I am publishing here but contain more technicals and risk management - so just a combination of multiple videos I released in this playlist.
Havin trouble with async ??? async with' outside async function :D Im newbie, i googled for that, but couldnt find anythin helpin me
If you are not using Jupyter this problem is occuring.
I covered this problem in this video at around the 9th minute :D Please watch the section again and let me know if this is solving your problem.
@@Algovibes Yeah, sorry... :D its workin but rn, i get only one column with price and the code exit urself (without error, its like only do a one time response from socket and end it)( im not from country where is eng native language, so learnin only form youtube, netflix etc... :D )
@@Algovibes ill start using jupyter, so ill comment Here after i complete the code, have a nice Day And thqnx for this vids ✅
@@YouLolNotLolYou Yeah that is because you don't request the data within an infinite loop probably. You have a nice day as well and thanks for your kind words :-)
Oke, so in jupyter is everything working Fine ✅😄
Dude thanks a million, was looking for this kind of video tutorials on youtube, subscribed
Awesome to read :-) BTW I have loads of other stuff on that topic in my cryptobot playlist. Be kindly invited to check that out and let me know what you think!
@@Algovibes do you have any python tutorials on Forex Trading platforms?
Thanks for the useful video sir 🙏
Can you please make a tutorial for a bot that places your Stop Loss at break even once your 1st Take Profit hits?
How much fees you had paid while trading? I think it's around 0.1% or 0.075% ...?
0.0075% per trade.
Thanks for watching btw :-)
@@Algovibes 0.0075% for both buying and selling (i.e, total 0.015%) or just once 0.0075% for both buy and sell?
And bro, is there any platform with zero api spot trading fees?
@@sciencetadka6735 total 0.015%, so 0.0075% per trade. Regarding zero api spot not that I am aware of at least!
@@Algovibes Any idea what kind of slippage (difference between bid and ask) you realize on those trades?
Hi, love your content and looking forward to the next one with the indicators calculated over a longer timeframe. Hope to see you trade some of them ‘I don’t really care’ tokens then ;)
Thank you very much for your kind comment.
Will come in the upcoming months!:-)
Cool
Where to get the code?
I am providing the source code when a certain level of engagement is reached. This one still needs some more.
Can you please make a video in bitmex api
it is very good tutorial. I tired with my own bot using TA lib with RSI, MACD, StochRSI indicator but unable stop the losses.
Thanks a bunch mate!
Have you checked out the video on implementing a Trailing stop loss? Might be helpful for you:
ruclips.net/video/V6z1ME3-0_I/видео.html
Are you using the reversal strategy using the momentum indicators? Can you share the code with me?
Can you please make a video on how to make a forex trading bot from scratch
Thanks for your suggestion! Will cover FX within this year.
Make a video on margin trading’s
Danke sir ! Can you make a video how to make a logarithmic regression for btc and adding a heatmap on the chart.
I love your work man !
Welcome :-D
Did you already check out my video on logistic regression? If not be kindly invited to do so:
ruclips.net/video/X9jjyh0p7x8/видео.html
@@Algovibes yeaaah, i mean, Bitcoin Logarithmic Growth Curves, like this one www.lookintobitcoin.com/charts/bitcoin-logarithmic-growth-curve/, my bad I wrote logistic regression... arrrfff
Thanks for the video
Thanks for watching :-)
Great!! Thanks!!! Can make breakrange minute system, please!?
Thank you very much buddy.
Could you elaborate on your suggestion please? Thanks in advance!
Thanks for the knowledge sir
Thanks for watching! :-)
plz give full code?
Not yet for this one. I have published it for the second cryptobot vid tho.
Very helpful to me, thank you,.
That's awesome. Thanks for watching buddy
Hey, I like your videos. Your voice sounds familiar, did you do an AI training for ECB?
Hi, thank you very much!
No, I actually didn't :-D
it is very good tutoria
Spasibo :-)
Thanks for this amazing video and valuable information. ,,👍🏽👏🏽
Thanks for your kind comment mate. Appreciate it.
Hi!
Thank you for your content.
Can u explain please, how to get second level column via .loc?
.loc[:,df[][]] doesnt work(
Hi buddy, Spasibo :-)
What do you mean with second level column? Can you give me a timestamp?
@@Algovibes
I mean, that you used minitick data, but if I use klines data, then the response is returned in a way
{
"e": "kline", // Event type
"E": 123456789, // Event time
"s": "BTCUSDT", // Symbol
"k": {
"t": 123400000, // Kline start time
"T": 123460000, // Kline close time
"s": "BTCUSDT", // Symbol
"i": "1m", // Interval
"f": 1
and etc.
Thus I cant get by .loc any data under the 'k'. When I used .loc[k][0][s] - somehow it returned value I am looking for, but only with a mistake :(
очень интересно, но ни хрена не понятно !!!!!
:D :D How can I help you make sense out of it?
Good job bro, JESUS IS COMING BACK VERY SOON;WATCH AND PREPARE
Excuse me in this strategy already in third step I have an error createframe is not defined I have try to defined but I can't see the df data. also this code is not on drive
This is the command:
async with stream as receiver:
while True:
data = await receiver.recv()
data = json.loads(data)['data']
df = createframe(data)
print(df)
This is the log:
NameError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_25980\1403449384.py in
3 data = await receiver.recv()
4 data = json.loads(data)['data']
----> 5 df = createframe(data)
6 print(df)
NameError: name 'createframe' is not defined
where we can get the code?
By becoming a channel member! :-)
ruclips.net/channel/UC87aeHqMrlR6ED0w2SVi5nwjoin
hello i try to make bot with your tuto but i got this
print(order)
^
SyntaxError: invalid syntax
just after the order.
i dont saw the error can some one tell me what is the error thanks.
Well that could be anything. Can you maybe elaborate a bit pls?
Hello i got this error "SyntaxError: 'async with' outside async function" please help
Hi buddy, please check the instructions at around minute 9 in case you are not using Jupyter Notebook.
Hello, many thanks for all very interesting and usefull videos. A question. Whats the difference between using the SQLite to store data and only using the pandas dataframe?