Comments (5)
Check the examples directory: neworder.py, also see issue #17
from oanda-api-v20.
Okay thank you, what about closing an order?
On Thu, Oct 20, 2016 at 11:45 PM, Feite Brekeveld [email protected]
wrote:
Check the examples directory: neworder.py, also see issue #17
#17—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGdeiIjSBi0MeFiXvmjSj2sRMTfA_C08ks5q2FGJgaJpZM4KcvQ_
.
Weston R. Shakespear
from oanda-api-v20.
Also I believe that all of your documentation is out of date. In your
documentation on readthedocs you have this line "r =
trades.Trades(accountID, op=trades.TRADE_LIST)" where TRADE_LIST has no
definition
On Fri, Oct 21, 2016 at 10:08 AM, Weston Shakespear <
[email protected]> wrote:
Okay thank you, what about closing an order?
On Thu, Oct 20, 2016 at 11:45 PM, Feite Brekeveld <
[email protected]> wrote:Check the examples directory: neworder.py, also see issue #17
#17—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGdeiIjSBi0MeFiXvmjSj2sRMTfA_C08ks5q2FGJgaJpZM4KcvQ_
.Weston R. Shakespear
Weston R. Shakespear
from oanda-api-v20.
You can't close an order! ... but you can:
- cancel an order:
r = orders.OrderCancel(accountID, orderID)
- close a position, for instance a part of a long position you have in instrument, which can be a hedged position, so you need to identify longUnits or shortUnits
```python
r = positions.PositionClose(accountID, instrument, data={"longUnits": ...})
- close a trade ( a trade is either long or short, so to partially close a trade just specify units)
```python
r = trades.TradeClose(accountID, tradeID, data={"units": ...})
from oanda-api-v20.
Currently I'm working on more documentation.
Just like OANDA has not jet released the specs completely (forexlabs is to come), this library is under development parallel with the specs of OANDA.
As soon as the specs are complete a pypi package will be released as a first official release.
All classes take the same parameters as you find them in the specs of OANDA.
Wait a few days and there will be more documentation
from oanda-api-v20.
Related Issues (20)
- PositionClose HOT 2
- Streaming OHLC data? HOT 3
- `InstrumentsCandles` Returns Candles from a few days ago HOT 1
- Unit not accepting less than 1 HOT 2
- Expiry time on Stop order not correct HOT 1
- Allow floats as unit size instead of integers HOT 3
- Proxy uses HTTP and not HTTPS HOT 1
- daily candles seem to be shifted one day HOT 1
- ContentDecodingError with InstrumentsCandles HOT 3
- API Connection keeps closing HOT 2
- Wrong implementation of units - "rejectReason":"UNITS_INVALID" HOT 1
- Client Access Not working for Instruments call or any data call HOT 1
- question for Feite HOT 1
- question for hootnot 2 HOT 1
- Keep on getting `The provided request was forbidden` error. HOT 4
- question for feit HOT 1
- asyncio support?
- Extend the pricing endpoints
- Add asyncio support
- Wrong bar values?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oanda-api-v20.