@@ -31,7 +31,7 @@ python setup.py install
3131
3232```
3333
34- ### Import librarys
34+ ### Import libraries
3535
3636``` python
3737from ejtraderCT import Ctrader
@@ -45,7 +45,7 @@ logging.getLogger().setLevel(logging.INFO)
4545
4646```
4747
48- ### Fix login account and details
48+ ### Fix account login and details
4949
5050``` python
5151server= " h8.p.c-trader.cn" # Host name
@@ -58,18 +58,18 @@ api = Ctrader(server,broker,account,password,currency)
5858
5959```
6060
61- ##### to Disconnect logout from account
61+ ##### To disconnect and logout from the account
6262``` python
6363api.logout()
6464```
6565
66- ### Real time quote
66+ ### Real- time quote
6767
68- ##### Subscribe to symbol
68+ ##### Subscribe to symbols
6969``` python
7070api.subscribe(" EURUSD" , " GBPUSD" )
7171```
72- ##### All symbols quote list
72+ ##### List of quotes for all symbols
7373``` python
7474quote = api.quote()
7575print (quote)
@@ -79,7 +79,7 @@ print(quote)
7979{' EURUSD' : {' bid' : 1.02616 , ' ask' : 1.02618 }, ' GBPUSD' : {' bid' : 1.21358 , ' ask' : 1.21362 }}
8080```
8181
82- #### Single symbol quote
82+ #### Quote for a single symbol
8383``` python
8484quote = api.quote(" EURUSD" )
8585print (quote)
@@ -89,15 +89,15 @@ print(quote)
8989{' bid' : 1.02612 , ' ask' : 1.02614 }
9090
9191```
92- ### Market position and pending order .
92+ ### Market position and pending orders .
9393
94- ##### Market Position
94+ ##### Market position
9595
9696``` python
9797# Buy position
9898
9999symbol = " EURUSD"
100- volume = 0.01 # position size
100+ volume = 0.01 # position size:
101101stoploss = 1.18
102102takeprofit = 1.19
103103
@@ -113,7 +113,7 @@ takeprofit = 1.18
113113api.sell(symbol, volume, stoploss, takeprofit)
114114```
115115
116- ##### Limit Orders
116+ ##### Limit Orders
117117
118118``` python
119119
@@ -179,7 +179,7 @@ orders = api.orders()
179179print (orders)
180180
181181```
182- #### Cancle order by id
182+ #### Cancel order by id
183183
184184``` python
185185orders = api.orders()
@@ -195,18 +195,18 @@ for position in positions:
195195
196196```
197197
198- #### cancel all Orders
198+ #### Cancel all orders
199199
200200``` python
201201api.cancel_all()
202202```
203203
204- #### close all positions
204+ #### Close all positions
205205
206206``` python
207207api.close_all()
208208```
209- #### Modify Position SL and TP
209+ #### Modify position SL and TP
210210``` python
211211id = " position id "
212212stoploss = " stop loss price" "
@@ -216,7 +216,7 @@ api.positionModify(id, stoploss, takeprofit)
216216
217217```
218218
219- #### Modify order Order SL and TP and entry price
219+ #### Modify order SL and TP and entry price
220220``` python
221221id = " order id "
222222stoploss = " stop loss price" "
@@ -226,7 +226,7 @@ price = "limit or stop entry price"
226226api.orderModify(id , stoploss, takeprofit, price)
227227
228228```
229- ## Contributors
229+ ## Contributors:
230230
231231<!-- CONTRIBUTORS:START -->
232232<!-- CONTRIBUTORS:END -->
0 commit comments