https://github.com/futuresea-dev/etrade-api-python
ETRADE API Python
https://github.com/futuresea-dev/etrade-api-python
api apiintegration cryptocurrency python trade
Last synced: 4 months ago
JSON representation
ETRADE API Python
- Host: GitHub
- URL: https://github.com/futuresea-dev/etrade-api-python
- Owner: futuresea-dev
- Created: 2021-09-06T09:33:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-06T09:35:09.000Z (over 4 years ago)
- Last Synced: 2025-08-01T13:03:45.745Z (6 months ago)
- Topics: api, apiintegration, cryptocurrency, python, trade
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E*TRADE API Python Sample Application
This sample Python application provides examples on using the ETRADE API endpoints.
## Table of Contents
* [Requirements](#requirements)
* [Setup](#setup)
* [Running Code](#running-code)
## Requirements
In order to run this sample application you need the following three items:
1. Python 3 - this sample application is written in Python and requires Python 3. If you do not
already have Python 3 installed, download it from
[`https://www.python.org/downloads/`](https://www.python.org/downloads/).
2. An [E*TRADE](https://us.etrade.com) account
3. E*TRADE consumer key and consumer secret.
## Setup
1. Unzip python zip file
2. Edit [`config.ini`](EtradePythonClient/etrade_python_client/config.ini)
with your consumer key and consumer secret; copy these from your application's keys' section
3. Create the virtual environment by running the Python's venv command; see the command syntax below
```
$ python3 -m venv venv
```
4. Activate the Python virtual environment
On Windows, run:
```
$ venv\Scripts\activate.bat
```
On Unix or Mac OS, run:
```
$ source venv/bin/activate
```
5. Use pip to install dependencies for the sample application
```
$ pip install -r requirements.txt
```
6. Run the sample application
```
$ cd etrade_python_client
$ python3 etrade_python_client.py
```
## Running Code
Complete these steps to run the code for the sample application:
1. Activate the Python virtual environment
On Windows, run:
```
$ venv\Scripts\activate.bat
```
On Unix or Mac OS, run:
```
$ source venv/bin/activate
```
2. Run the application
```
$ cd etrade_python_client
$ python3 etrade_python_client.py
```