Skip to content

Commit

Permalink
Merge pull request #21 from ejtraderLabs/traderpedroso-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
traderpedroso committed Jul 13, 2023
2 parents f8bc3c1 + aa4337f commit 2358ca9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ To access your API, follow these simple steps:

```python
from ejtraderCT import Ctrader
from time
```

### Fix account login and details
Expand All @@ -72,11 +73,14 @@ account="live.icmarkets.1104926" # - SenderCompID: live.icmarkets.1104926
password="12345678" # - The password you configured

api = Ctrader(server,account,password)
time.sleep(3)

```
##### Check the connection status
```python
api.isconnected()
checkConnection = api.isconnected()
print("Is Connected?: ", checkConnection)
time.sleep(1)
```
##### Logout
```python
Expand Down

0 comments on commit 2358ca9

Please sign in to comment.