Stock Market Visualizer Plotter Blender in Python

Import Stock Price Chart Images and Visualize in Blender Python:



Follow the Instructions from the Above Video then go for the Code Input:


Code in Python:



import pandas as pd
from fyers_api import fyersModel
from datetime import datetime,timedelta
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')
client_id=open('app_id.txt','r').read()
token=open('access_token.txt','r').read().strip()
fyers=fyersModel.FyersModel(client_id=client_id,token=token,log_path='C:/Users/Current_Directory')
days=1
symbol='NSE:NIFTYBANK-INDEX'
interval='1'
now=datetime.now()
from_date=now-timedelta(days=days)
from_date=datetime.strftime(from_date,'%Y-%m-%d')
to_date=datetime.strftime(now,'%Y-%m-%d')
def historical_data(symbol,interval,from_date,to_date):
    data={'symbol':symbol,
          'resolution':interval,
          'date_format':'1',
          'range_from':from_date,
          'range_to':to_date,
          'cont_flag':'1'
          }
    response=pd.DataFrame(fyers.history(data=data)['candles'],columns=['date','open','high','low','close','volume'])
    return response
hist=historical_data(symbol,interval,from_date,to_date)
plt.plot(hist['close'])
plt.tight_layout()
plt.savefig('price.png')
plt.show()

Code in Blender Python Text Editor:



import bpy
bpy.ops.object.delete(use_global=False)
bpy.ops.mesh.primitive_plane_add(size=2, enter_editmode=False, location=(0, 0, 0))
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
bpy.ops.import_image.to_plane(files=[{"name":"price.png", "name":"price.png"}], directory="C:\\Users\\your_directory\\Desktop\\blender\\", relative=False)

Easy Installation of Python Packages in Blender:



Follow the Instructions from the Video then go for the Command

Find Path of Python Blender:


import sys
print(sys.executable)


Run CMD as Adminstrator the Set your Path as such C:\Program Files\Blender Foundation\Blender\2.80\python> and Type this Command.


Pip Installation=>  .\bin\python.exe -m ensurepipre
Packages Installation=>.\Scripts\pip3.exe install matplotlib


CNC(Computer Numerical Control)


Materials Required:

1)CNC Shield

2)Arduino UNO R3

3)DRV8825 Driver


Buy From Here:Robocraze CNC Shield + Arduino UNO R3 + 4 x DRV8825 Driver Kit for Arduino 3D Printer Kit | 3D Printer Project


4)Fishing Line

Buy From Here: Adeeing Braided Fishing Line 20LB-80LB Test 4 Stands Super Strong PE Fishing Line Dark Green


5)Gondola 3D Printed to BUY Low Cost 3D Printer Click Here:WOL3D ENDER 3 ORIGINAL DIY 3D PRINTER WITH RESUME FUNCTION AND EASY TO ASSEMBLE


6) 2 Cheap Bipolar Stepper Motors INVENTO Nema 17 4.2 Kg cm Bipolar Stepper Motor with 19 teeth Gear for CNC Robotics RepRap 3D Printer


7)Power Supply 12V 30A 3DPrintronics WV01RCA07884 12V 30A 350W Power Supply for 3D Printer


8)Bluetooth HC-05 Module xcluma Hc-05 Wireless Bluetooth Rf Transceiver Module Serial/Ttl/Rs232 Arduino


9)White Filaments to 3D Print Gondola WOL 3D 3D Filaments (White)