Python interface to the tastytrade API
Project detail
I am looking for an experienced Python developer to create a Python interface to the tastytrade API. The main functionality required for this project is the ability to place orders, cancel orders, get positions, and get transaction history..
Tasks:
Write code to connect to the tastytrade sandbox via developer.tastytrade.com.
Write the following four functions:
1) symbol, put_call, long_qty, short_qty, avg_price = get_option_positions()
2) order_id, response.status_code = place_single_option_order(symbol, quantity, price, instruction, duration, order_type)
instruction: ‘BUY_TO_OPEN’, ‘SELL_TO_CLOSE’, ‘SELL_TO_OPEN’, ‘BUY_TO_CLOSE’
order_type: ‘MARKET’, ‘LIMIT’
price: None if ‘MARKET’ $x.xx if ‘LIMIT’
duration: ‘DAY’, ‘GTC’, ‘GTD’
3) response.status_code = cancel_order(order_id)
4) status, response = get_transactions(start_date, end_date)
response:
orderId
transactionDate
price
instruction (BUY or SELL)
positionEffect (OPENING or CLOSING)
amount
put_call
symbol
The expected timeline for this project is within 1-2 weeks, so the developer should be able to deliver the project within this timeframe.
Skills and experience needed for this project:
– Strong proficiency in Python
– Experience with API integration and development
– Knowledge of stock trading and trade parameters
– Ability to work within tight deadlines
Please put: IREADIT in your proposal.