Code Monkey home page Code Monkey logo

fiddleoptions's Introduction

swagger-client

Fixed generated code from Swagger Codegen https://github.com/swagger-api/swagger-codegen)

Requirements

Python 2.7 and 3.4+

Installation

pip install

pip install fiddleoptions

Then import the package:

import fiddle_options

Setuptools

Install via Setuptools.

python setup.py install 

(or sudo python setup.py install to install the package for all users)

Then import the package:

import swagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.FiddleApi()
id = 'id_example' # str | 

try:
    # Deletes Fiddle with specified id
    api_instance.delete_fiddle(id)
except ApiException as e:
    print("Exception when calling FiddleApi->delete_fiddle: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost/mercury/

Class Method HTTP request Description
FiddleApi delete_fiddle DELETE /fiddle/delete/{id} Deletes Fiddle with specified id
FiddleApi get_fiddle GET /fiddle/load/{id} Returns the Fiddle with specified id
FiddleApi get_fiddle_list GET /fiddle/{userId}/list Returns the list of Fiddles for the specified user
FiddleApi get_position_legs POST /fiddle/position/legs Returns all options contracts that the specified options position is consisted of
FiddleApi get_trade_from_tos_string POST /fiddle/position/fromTOSString Creates a list of positions from a list of trades specified in ThinkOrSwim format
FiddleApi save_fiddle POST /fiddle/{userId}/save Saves a new Fiddle or updates an existing one
MarketdataApi get_equity_quote GET /marketdata/equity/{name} Returns equity quotes for each trading day for the given ticker and time period
MarketdataApi get_expirations GET /marketdata/option-chain/expirations/{name} Returns expirations for the given symbol and trading date
MarketdataApi get_horizontally_sliced_option_chain_by_delta GET /marketdata/option-chain/{name}/horizontal-slice-by-delta Returns horizontal slice of option chain for the given symbol, option type, trading dates, expiration, and the delta strike range
MarketdataApi get_horizontally_sliced_option_chain_by_strike GET /marketdata/option-chain/{name}/horizontal-slice-by-strike Returns horizontal slice of option chain for the given symbol, option type, trading dates, expiration, and the strike range
MarketdataApi get_option_chain GET /marketdata/option-chain/{name} Returns option chain for the given symbol, trading date, and expiration date
MarketdataApi get_server_time GET /marketdata/servertime Get the current server time
MarketdataApi get_trading_dates GET /marketdata/tradingdates/{symbol} Returns actual trading days in specified from/to date range
MarketdataApi get_vertically_sliced_option_chain_by_delta GET /marketdata/option-chain/{name}/vertical-slice-by-delta Returns vertical slice of option chain for the given symbol, option type, trading date, expiration, and the delta strike range
MarketdataApi get_vertically_sliced_option_chain_by_strike GET /marketdata/option-chain/{name}/vertical-slice-by-strike Returns vertical slice of option chain for the given symbol, option type, trading date, expiration, and the strike range
MarketdataApi get_volatility_skew GET /marketdata/iv-skew Returns volatility skews for the given trading symbol, the expiration and the observation dates
MarketdataApi search_tickers GET /marketdata/tickers Searchs for symbols in the system with an optional query parameter. If query parameter is not used all symbols are returned
TradeserviceApi calculate_decomposed_pn_l POST /tradeservice/dpnlCalculator Returns the P&L timeline decomposed by greeks for the given trade and the specified time range
TradeserviceApi calculate_historical_pn_l POST /tradeservice/histpnlCalculator Returns the P&L timeline for the given trade and the specified time range
TradeserviceApi calculate_historical_value POST /tradeservice/histvalueCalculator Returns the historical dollar denominated value for the given trade and the time window
TradeserviceApi calculate_instant_decomposed_pn_l POST /tradeservice/instantdpnlCalculator Returns the greek decomposed P&L for the given trade and the time window
TradeserviceApi calculate_pn_l POST /tradeservice/pnlCalculator Returns the the t+0 curve and expiration PnL curve for the given trade

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

fiddleoptions's People

Contributors

kovacicek avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.