Linux | Codecov |
---|---|
These are a set of lambda functions for pricing options when assets follow an extended Jump Diffusion process with stochastic time clock correlated with the diffusion portion of the asset process. See Carr and Wu 2004 and Huang and Wu 2004.
Additional documentation is available at the fang_oost_charts.
cargo build --target x86_64-unknown-linux-musl --release
cat ./tests/parameter1.json | sudo docker run --rm -v "$PWD":/var/task -i -e DOCKER_LAMBDA_USE_STDIN=1 lambci/lambda:provided ./target/x86_64-unknown-linux-musl/release/pricer
View benchmarks at https://realoptions.github.io/option_price_faas/report.
When deploying to GCP, do the following steps:
- Install glcoud cli (https://cloud.google.com/sdk/docs/downloads-apt-get)
- Run
gcloud auth configure-docker
- Build and tag the docker image:
docker build . -t gcr.io/finside/option_price_faas:1.0.0 -f ./docker/option_price.Dockerfile
gcloud auth login
gcloud config set project finside
docker push gcr.io/finside/option_price_faas:1.0.0
gcloud run deploy optionpricefaas --image gcr.io/finside/option_price_faas:1.0.0 --platform managed --allow-unauthenticated
- To delete:
gcloud run services delete optionpricefaas --platform managed