Topics
Replies
manelfx9530
05 Feb 2024, 10:01
RE: Why the statement no longer have the save option?
PanagiotisCharalampous said:
Hi there,
There was never such option for cTrader Web. This is available only in cTrader Desktop.
Best regards,
Panagiotis
Until last week i could go to history tab, click on statement and then on the account statement that would pop up in another window i would get two buttons, one to print and another to save, if i clicked save it would download the statement in csv format. Those buttons are no longer there. I'm 100% sure of this.
I will use ctrader desktop from now on then. Thank you for your answer.
@manelfx9530
manelfx9530
23 Jun 2023, 12:54
( Updated at: 23 Jun 2023, 12:55 )
Its working now. First it gives an error but then I start getting messages from ProtoHeartbeatEvent.
@manelfx9530
manelfx9530
22 Jun 2023, 12:49
( Updated at: 22 Jun 2023, 12:50 )
You are missing these two functions in your code
def accountAuthResponseCallback(result):
print("\nAccount authenticated")
# From here you build your next step
def applicationAuthResponseCallback(result):
print("\nApplication authenticated")
request = ProtoOAAccountAuthReq()
request.ctidTraderAccountId = credentials["AccountId"]
request.accessToken = credentials["AccessToken"]
deferred = client.send(request)
deferred.addCallbacks(accountAuthResponseCallback, onError)
And make this two lines like this:
deferred.addCallbacks(onProtoOAApplicationAuthRes, onError)
# deferred.addErrback(onError)
First of all you need to go to ctrader openapi and create an application to get your credentials, then place the credentials in a file like they do in their github example and if you have done everything right plus modified your code with what i said you should be able to connect, authenticate your application and authorize the account to start trading, from there is a question of try and error and understanding their docs.
@manelfx9530
manelfx9530
21 Jun 2023, 22:44
( Updated at: 21 Jun 2023, 22:45 )
Follow their code in their github and you will find your answers. I say this as a guy that understand little of coding this type of stuff and was able to do it.
@manelfx9530
manelfx9530
13 Jul 2021, 11:22
RE:
PanagiotisCharalampous said:
Hi,
As the message indicates
Error CS0618: 'cAlgo.API.Robot.ExecuteMarketOrder(cAlgo.API.TradeType, cAlgo.API.Internals.Symbol, double, string, double?, double?, double?, string, bool, cAlgo.API.StopTriggerMethod?)' is obsolete: 'Parameter 'Symbol symbol' was replaced with 'string symbolName'. More details here https://ctrader.com/forum/announcements/15847'
Check here for the available overloads of the method.
Best Regards,
Panagiotis
Never thought an obsolete parameter would affect so much the whole class, its working as it should now. Thanks :)
@manelfx9530
manelfx9530
13 Jul 2021, 11:18
RE:
PanagiotisCharalampous said:
Hi manelfx9530,
Probably your broker did not receive the update yet.
Best Regards,
Panagiotis
Thanks, that might be it then. For now i'm using my keyboard with the ENG layout so i can work it around.
@manelfx9530
manelfx9530
11 Jul 2021, 22:17
RE: RE:
kebbo said:
PanagiotisCharalampous said:
Hi kebbo,
This issue should have been fixed in 4.1.6 of cTrader Desktop. Can you check which version you are running?
Best Regards,
Panagiotis
Updated and working, thank you! Have a nice weekend!
How did you updated your ctrader? I cant find the update file and mine doesnt update automatically yo the 4.1.6
@manelfx9530
manelfx9530
11 Jul 2021, 21:44
RE:
I can't create any brackets when coding in the automate section. How can i solve this issue?
@manelfx9530
manelfx9530
25 Mar 2024, 08:38
RE: Why the statement no longer have the save option?
kepsta_123 said:
There is a trick I found after i post this. On the statement page, inspect the page, then on search html, search for the word ‘save’, there will be one button for save but in its properties the display property is set to ‘none’, you need to delete that ‘none’ word. The buttons will then appear. You still need to make some adjustments to the file but its almost the same as before.
I hope, now, after i told you this, they dont delete the buttons from the source code…
@manelfx9530