How remove user account from application?
How remove user account from application?
25 Feb 2017, 11:25
Hi, spotware
How remove user account from application ?
Replies
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
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, 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, 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
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
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