Terminé

Draw a Binomial Pricing Trees in Python

I'm going to build a single-page binary tree dashboard in Python and flask/django on calculated stock option's price, where it is similiar with the following project in R but I have two more requests, one is to run as a API using Flask/Django and secondly to use the the existing calculation model in python pacakge "qfrm" .

[login to view URL]

Preferably to embed the python package of "qprm" in the project, instead of my original scripting as below. But for the first step you can use this simpler code in Python 2.7 to protype your ideas.

from math import exp

# option input parameters

dt = input("Timesteps: ")

S = input("Initial spot price: ")

r = input("Risk-free discount rate: ")

K = input("Strike price: ")

p = input("Growth probability: ")

u = input("Growth factor: ")

N = input("Timesteps to expiration: ")

# Choose a Call or a Put

call = raw_input("Call or put? (C/P) ").upper().startswith("C")

def binary(k, us):

Stockprice = S * (u ** (2 * us - k))

if call:

profit = max(0, Stockprice - K)

else:

profit = max(0, K - Stockprice)

# If a leaf node

if k == N:

return profit

# Binomial value recursively

decay = exp(-r * dt)

expected = p * binary(k + 1, us + 1) + (1 - p) * binary(k + 1, us)

binomial = decay * expected

# If an American option

return max(binomial, profit)

print 'Got your option price: $%.3f' % binary(0, 0)

Compétences : Django, Analyses financières, Flask, Mathématiques, Python

en voir plus : binomial options model python, print binomial tree python, python plot binomial tree, american option pricing python, binomial tree in r, python plot tree, american option binomial tree python, binomial option pricing python, python download email attachments, draw polygon google map, monthly salaries python developer, bid python programming projects, binomial american option pricing vba, binomial tree option pricing vba userform, binomial option pricing model excel, benefits trees python, pricing asian options using binomial tree excel, binomial option pricing software, clrs binomial trees, binomial trees

Concernant l'employeur :
( 1 commentaire ) Koto, Japan

Nº du projet : #17482244

Décerné à:

TrueLifes

Hi Client, I am developer from Adobe with more than 6 year of experience with python. I have written lot of application in flask and django. Here is the list and can list many more: https://www.freelancer.i Plus

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 3 jours
(0 Commentaires)
0.0

15 freelance font une offre moyenne de $187 pour ce travail

rajdeepa555

Hello Sir, I am professional python programmer, I mainly deal in web apps in flask/django. I checked your Binomial Pricing Tree algorithm in R. and its convertable in python using Pandas library. this library is a p Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(57 Commentaires)
6.2
dinhfreedom

---Very Nice Job. Professional Python & Binomial Tree & Machine Learning expert. Best result in time----- [login to view URL] I read your description very carefully. I am very interesting for your project because I have ri Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(44 Commentaires)
5.9
ThanassisKalv

hello! I am familiar with binomial math and this kind of project seems pretty cool, I suppose you want your inputs to be in GUI forms and Flask will deliver a frontend with single-page binary dashboard. We can discus Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(95 Commentaires)
6.0
synl0rd

Hi I am Hadi, python & django expert. you can check my skills too there. Also can looking in my rating review freelancer.com https://www.freelancer.com/u/synl0rd.html My successful product build with myself Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(15 Commentaires)
5.4
snippetbucket

My Respected, Very good experienced with REST API with Django framework. Had done Django insurance, digital-sign-age, school solution, automation, order management kind of success projects. I had experienced w Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(46 Commentaires)
5.5
schoudhary1553

Hello, I can help with you in your project Draw a Binomial Pricing Trees in Python I have more than 5 years of experience in Django, Financial Analysis, Flask, Mathematics, Python . We have worked on several sim Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(26 Commentaires)
5.4
aki003iitr

I am a data scientist with 4 years of experience in creating advanced machine learning models using R and Python. I have completed 30+ projects in R, Python and ml on this platform. I have understood your requirements Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(17 Commentaires)
5.0
TakaAlex

Hello Very Interested in your project I can do it with 7+ years development experience in 8 hours. I am very familiar with Flask,Django,Python(2.7,3.6) Let's have a talk for more detail Thanks

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(6 Commentaires)
4.5
sky930320

Dear sir. I am Adam Poh. Nice to meet you. I am php and python developer. I can draw this tree by using python. Please check this url. [login to view URL] I will finish this job within 1 day. Please se Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(3 Commentaires)
3.4
sunny2309

Hello, I went through your requirements. I can help you with your task using python and ML/DL algorithms. I do have good experience in data science libraries like numpy, pandas , matplotlib, scikit-learn, keras, pyt Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 15 jours
(4 Commentaires)
3.2
lightingdavid

Hello. I have good skills in Python. I have read your project description carefully and very interest. Contact me please. Thanks......................................

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(2 Commentaires)
2.7
omermaroof18

I am CFA and FRM qualified with five years of experience in investment management . Therefore, I can make the binomial tree for you in python. For more details, contact me

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(1 Évaluation)
0.4
suunn

Hi i am experience with python 2.7 and django and have confident to handle task with my previous knowladge

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)
0.0
gd015828

I am python expert I am python expert I am python expert I am python expert I am python expert I am python expert I am python expert I am python expert I am python expert I am python expert I am pyt Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)
0.0