https://github.com/uberdeveloper/omspy-brokers
Broker plugins for omspy
https://github.com/uberdeveloper/omspy-brokers
Last synced: 18 days ago
JSON representation
Broker plugins for omspy
- Host: GitHub
- URL: https://github.com/uberdeveloper/omspy-brokers
- Owner: uberdeveloper
- Created: 2022-08-20T14:01:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-28T03:15:45.000Z (over 1 year ago)
- Last Synced: 2024-11-28T04:20:46.038Z (over 1 year ago)
- Language: Python
- Size: 48.8 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Broker add-ons for omspy
This repository provides connectors to various live brokers.
To implement a broker
1. Subclass from `omspy.base.Broker`
2. Implement the following 4 methods
### `authenticate`
authenticate the user
### `order_place`
to place a new order
### `order_modify`
to modify an existing order
### `order_cancel`
to cancel an existing order
3. Create the following 3 methods as properties
### `orders`
should return a list of all orders
### `positions`
should return a list of all existing positions
### `trades`
should return a list of all trades
Implement any other broker method you wish to implement
and also override any existing method