Topics
Replies
mindbreaker
06 Mar 2017, 12:36
RE:
Spotware said:
Hi mindbreaker,
Can you please tell us where did you get these symbol names?
Best Regards,
From connect Api with fxpro ctrader.
@mindbreaker
mindbreaker
06 Mar 2017, 12:33
RE: Caution this code may open trades every bar..!
It was only example (for tests).
Working example with mysql databse you can see here:
https://github.com/fxstar/Copex-FxStar
Client: https://github.com/fxstar/Copex-FxStar/blob/master/_Copex-FxStar-Client-SL-TP-EquityStopLoss-SSL-Secure-Last.cs
Provider: https://github.com/fxstar/Copex-FxStar/blob/master/_Copex-FxStar-Trader.cs
@mindbreaker
mindbreaker
02 Mar 2017, 15:55
( Updated at: 21 Dec 2023, 09:20 )
I need something like this:
How get % values?
@mindbreaker
mindbreaker
02 Mar 2017, 15:31
RE:
function kurs($today,$yesterday){ if ($today>$yesterday) { echo "+".$p = ($today/$yesterday)."%"; // $yesterday * $p; }else{ echo "-".$p = ($yesterday/$today)."%"; // echo $today * $p; } }
@mindbreaker
mindbreaker
01 Mar 2017, 13:16
Hi spotware,
why on spotware demo platform #US30 is disabled and where is WTI (crude oil) and (why you dont show same symbols for all brokers and demo accounts [ how can i copy positions from different accounts it silly] )?
@mindbreaker
mindbreaker
28 Feb 2017, 14:53
RE:
Why this example does not work?
<?php // SEND CURL POST DATA $data = array( 'countryId' => '1', 'phoneNumber' => '000000000', 'leverage' => 100, 'balance' => 10000000, 'depositCurrency' => 'USD', 'password' => '123456', 'accontType' => 'HEDGED' ); //Encode the array into JSON. //$data = json_encode($data); //API Url $url = 'https://api.spotware.com/connect/tradingaccounts/createdemo/?oauth_token=dddddddddd'; //Initiate cURL. $ch = curl_init($url); //Tell cURL that we want to send a POST request. curl_setopt($ch, CURLOPT_POST, 1); //Attach our encoded JSON string to the POST fields. curl_setopt($ch, CURLOPT_POSTFIELDS, $data); //Set the content type to application/json curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); //Execute the request echo $result = curl_exec($ch); ?>
@mindbreaker
mindbreaker
28 Feb 2017, 14:02
RE: RE:
mindbreaker said:
Spotware said:
Hi mindbreaker,
Please see below
1) "How remove user account from application ?". This is not very clear, can you please elaborate on what you are trying to do?
2) There are examples of deposit and withdrawal requests in the demo application, you can have a look. Make sure that your POST data format is JSON.
3) In a similar way to 2. Please check that your post requests are in JSON format.
2) There are examples of deposit and withdrawal requests in the demo application, you can have a look. Make sure that your POST data format is JSON.
Where is link to this sample ?
@mindbreaker
mindbreaker
28 Feb 2017, 12:02
RE: RE:
Or how disable (block) permissions to access account info or tading data?
@mindbreaker
mindbreaker
28 Feb 2017, 11:58
RE:
Spotware said:
Hi mindbreaker,
Please see below
1) "How remove user account from application ?". This is not very clear, can you please elaborate on what you are trying to do?
2) There are examples of deposit and withdrawal requests in the demo application, you can have a look. Make sure that your POST data format is JSON.
3) In a similar way to 2. Please check that your post requests are in JSON format.
1) How remove account from access_token ?
@mindbreaker
mindbreaker
26 Feb 2017, 15:55
!!!! Copy only users with Positions where Profit Average > 50 Pips per position !!!!
If you try copy strategy with small profits per position like ( < 50Pips on each position ) earn only broker and strategy provider !!!!
@mindbreaker
mindbreaker
25 Feb 2017, 20:20
And how to create demo account from accounts Api (example for FxPro) i try witch schema but (empty $_REQUEST)?
@mindbreaker
mindbreaker
25 Feb 2017, 15:48
Account api - change account deposit
And how change account deposit (FxPro accounts for example) from accounts Api?
I try couple times buy does not work.
Which data i need send via POST (field names, i tested from schema field names but no success)?
@mindbreaker
mindbreaker
24 Feb 2017, 14:24
RE:
Spotware said:
The example already references Protocol Buffers. Check the references.
example works ok without this file :)
How to check is access_token allow Trading operations on user accounts ?
@mindbreaker
mindbreaker
24 Feb 2017, 13:55
RE:
Spotware said:
Hi mindbreaker,
You can try here https://www.nuget.org/packages/Google.ProtocolBuffers/2.4.1.521 or here https://github.com/jskeet/protobuf-csharp-port
Hi spotware, connect trading example works without it.
Bye.
@mindbreaker
mindbreaker
23 Feb 2017, 14:32
RE:
mindbreaker said:
Hi Spotware,
Is it possible to add cTraderID and creation timestamp or connected account list to accetToken response:
{"accessToken":"sdfsdfsdA55Rnu29g7YdLotTNWTSM","tokenType":"bearer","expiresIn":2628000,"refreshToken":"LcusdfghtypPmJ8m4PP8OG6jNVVoFwHymT1mFaQ","errorCode":null,"access_token":"sdfsdfsdA55Rnu29g7YdLotTNWTSM","refresh_token":"LcusdfghtypPmJ8m4PP8OG6jNVVoFwHymT1mFaQ","expires_in":2628000}Bye.
Ok i get from:
https://api.spotware.com/connect/profile?access_token=sdfsd328r7r2r32r-23rr23r-23r2sef-fsdfsdVa_GEYe
@mindbreaker
mindbreaker
23 Feb 2017, 14:24
Hi Spotware,
Is it possible to add cTraderID and creation timestamp or connected account list to accetToken response:
{"accessToken":"sdfsdfsdA55Rnu29g7YdLotTNWTSM","tokenType":"bearer","expiresIn":2628000,"refreshToken":"LcusdfghtypPmJ8m4PP8OG6jNVVoFwHymT1mFaQ","errorCode":null,"access_token":"sdfsdfsdA55Rnu29g7YdLotTNWTSM","refresh_token":"LcusdfghtypPmJ8m4PP8OG6jNVVoFwHymT1mFaQ","expires_in":2628000}
Bye.
@mindbreaker
mindbreaker
06 Mar 2017, 12:41
RE:
Why this example does not work?
@mindbreaker