Blueshift

Hi sir,

    where i can learn basic about blueshift (methods, keywords,variable default and its uses)

plz send me link 

We plan to open source the blueshift core engine some time early next year, along with complete API documentation. Till then I suggest consulting the help pages, especially how to fetch assets, data, place orders, schedule functions and use pipelines. If you need more details on anything specific, please feel free to reply here!

 
context.stock=symbol('AAPL')
order_target_percent(context.stock,0.5)

plz explain how to calculate .
      
      how to  show all fields(like Date,Open,Close) in AAPL.
 

I suggest you go through the assets and data link shared above, and also consult the data query demo on our repo. From within one of the main entry-point API functions (with 'data' argument, e.g. handle_data) you can use the following to fetch historical data for a symbol.



price = data.history( symbol('AAPL'), ['open','close'], 5, '1d')



This returns the daily data for the last 5 days. For minute data, replace '1d' with '1m' (and make sure you are using a minute-level dataset). The returned data will be a dataframe. The index will be the corresponding timestamps and columns will be the fields queried for ('open' and 'close' here).