![mywebsidekicks's avatar](https://social-images-215c11ee-be56.s3.eu-west-2.amazonaws.com/user-601509/avatars/bigAvatarFileUrl-601509-1710177381.png)
Topics
Replies
mywebsidekicks
11 Jun 2024, 10:42
( Updated at: 12 Jun 2024, 05:46 )
OK, finally I have found these so called ‘account IDs’! Hope this might be helpful to someone:
- Go to your cTrader apps page: https://openapi.ctrader.com/apps
- Click on the ‘Playground’ button next to an app you are working with
- Next click ‘Trading accounts’, there you'll find raw webpage with all your account data in JSON format
- You are interested in number under the "accountId"
@mywebsidekicks
mywebsidekicks
13 Mar 2024, 11:58
( Updated at: 16 Mar 2024, 16:38 )
PanagiotisCharalampous said:
mywebsidekicks said:
wonepo@gmail.com said:
Hi,
Do you have a solution since ??
Nope :(
Hi there,
You should not use the account number or the cTrader ID number in that field. You should use the ctidTraderAccountId that is included in ProtoOACtidTraderAccount
Best regards,
Panagiotis
I'm a bit confused now, can you please give a code example
@mywebsidekicks
mywebsidekicks
23 Dec 2023, 16:40
RE: Unable to find cTID trader account with id=XXXXXX
wonepo@gmail.com said:
Hi,
Do you have a solution since ??
Nope :(
@mywebsidekicks
mywebsidekicks
12 May 2023, 14:26
But quite a few indicators use Trade Volume data, as far as I know
@mywebsidekicks
mywebsidekicks
11 May 2023, 18:04
Can someone from Spotware comment on this?
How do I get Trade Volume in cTrader Automate?
@mywebsidekicks
mywebsidekicks
10 May 2023, 18:06
( Updated at: 10 May 2023, 18:12 )
What about
private TradeVolumeIndex _volume;
@mywebsidekicks
mywebsidekicks
09 May 2023, 15:19
But as far as I understand, Tick Volume is not the same as Trade Volume
@mywebsidekicks
mywebsidekicks
30 Nov 2020, 14:30
RE:
PanagiotisCharalampous said:
Hi mywebsidekicks,
Unfortunately we cannot support Open API v1.0 any more, therefore the only thing I can suggest to you is to get familiar with Open API v2.0. the soonest
Best Regards,
Panagiotis
When exactly Open API v1 will be terminated?
@mywebsidekicks
mywebsidekicks
26 Nov 2020, 22:18
( Updated at: 27 Nov 2020, 20:47 )
RE: RE: RE: It seems to work with Python
Hey mate, thanks a lot for sending me in the right direction! I was able to install ProtoBuffs and compile Spotware protos to Python files!
One more question if you don't mind:
import OpenApiCommonMessages_pb2 as CommonMessages
import OpenApiCommonModelMessages_pb2 as CommonModelMessages
import OpenApiMessages_pb2 as Messages
import OpenApiModelMessages_pb2 as ModelMessages
clientId = r"myclientId"
clientSecret = r"myclientSecret"
token = r"mytoken"
accAuth = Messages.ProtoOAAccountAuthReq()
accAuth.ctidTraderAccountId = 1234567
accAuth.accessToken = token
# checks if all the required fields have been set.
print(accAuth.IsInitialized())
# returns a human-readable representation of the message, particularly useful for debugging.
print(accAuth.__str__())
# serializes the message and returns it as a string.
print(accAuth.SerializeToString())
So how do I actually send the data?
It needs to be sent to 'live.ctraderapi.com:5035' Right?
Via regular Python socket interface or with SSL wrapper?
@mywebsidekicks
mywebsidekicks
22 Nov 2020, 18:31
Ok, I've connected with C# sample to the TRADE stream,
but still can't make it work on Python... :(
I'm doing exactly the same.
@mywebsidekicks
mywebsidekicks
19 Nov 2020, 19:58
RE:
PanagiotisCharalampous said:
Hi mywebsidekicks,
As per the error
The project file "C:\Users\irmsc\pp\FIX API Library\FIX API Library.csproj" was not found.
Can you confirm that file is there and it is not locked by any other process e.g. antivirus or something else?
Best Regards,
Panagiotis
Yes, I confirm. I first though this is due to old Microsoft Build tools 2017, but I reinstalled both Visual Studio and build tools of 2019.
May be I should try to run this ono an VPS..
@mywebsidekicks
mywebsidekicks
18 Nov 2020, 21:49
( Updated at: 21 Dec 2023, 09:22 )
RE:
@PanagiotisCharalampous
Ok, I tried to run
In the Visual Studio 2019 but got an error:
1>------ Build started: Project: FIX API Library, Configuration: Debug|AnyCPU ------
1>C:\Users\irmsc\AppData\Local\Temp\tmp4d2b9d281c5e45808cac2e0a5d03d93c.proj(23,1): error MSB3202: The project file "C:\Users\irmsc\pp\FIX API Library\FIX API Library.csproj" was not found.
Build Failure. Error: Failed to complete scanning on file ‘C:\Users\irmsc\pp\FIX API Library\FIX API Library.csproj’
The screenshot:
@mywebsidekicks
mywebsidekicks
16 Nov 2020, 14:33
RE: It seems to work with Python
@honeybadger
Right. That's some valuable info, thanks a lot!
So how did you install protobuffs on Python, with pip or?
Also, do you find Open API really any better than Fix API for trading?
PS. LOL, nice nickname by the way. I'm a big fan of HoneyBadger =)
@mywebsidekicks
mywebsidekicks
12 Jun 2024, 17:40
So have you found the solution since then?
@mywebsidekicks