How remove user account from application?

Created at 25 Feb 2017, 11:25
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
mindbreaker's avatar

mindbreaker

Joined 19.07.2014

How remove user account from application?
25 Feb 2017, 11:25


Hi, spotware

How remove user account from application ?


@mindbreaker
Replies

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
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
27 Feb 2017, 16:35

Hallo Spotware are you there?


@mindbreaker

Spotware
28 Feb 2017, 10:11

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.

 

 


@Spotware

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
28 Feb 2017, 12:02

RE: RE:

Or how disable (block) permissions to access account info or tading data?


@mindbreaker

mindbreaker
28 Feb 2017, 12:39

How many account i can connect to single application ?


@mindbreaker

Spotware
28 Feb 2017, 12:50

There is no way to block yourself an application that you have already given access rights from accessing your data. You need to contact us to do so.

There are no limits on how many accounts an application can have access to.


@Spotware

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

Spotware
28 Feb 2017, 14:08

Here it is https://github.com/spotware/connect-csharp-web/


@Spotware

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

Spotware
01 Mar 2017, 11:09

Hi mindbreaker,

We will investigate and come back to you.

Thanks


@Spotware

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

Spotware
01 Mar 2017, 16:31

Symbol naming is up to the broker. Therefore some brokers might have their symbols named differently than other brokers.

Spotware cTrader Demo is just a version of cTrader for demontration purposes. If your application needs specifically WTI or US 30, we advise you to create a demo account with a broker that offers these symbols and experiment with that account.


@Spotware

mindbreaker
06 Mar 2017, 12:41

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