bachel Posted May 13, 2016 Share Posted May 13, 2016 Hi Könnte jemand ein Beispiel posten mit dem man in der Kombination der PHP - TradingApiSdk Version v1 einen Express verkauf starten kann also ne Sell Order ? Ich wäre euch sehr Dankbar Link to comment Share on other sites More sharing options...
4ley Posted June 10, 2016 Share Posted June 10, 2016 (edited) Hi ungetestet, Benutzung auf eigene Gefahr <?php require_once __DIR__.'/TradingApiSdkv1.php'; $api_key = 'MY_API_KEY'; $api_secret = 'MY_API_SECRET'; $api = new TradingApiSdk($api_key, $api_secret); $result = $api->doRequest(TradingApiSdk::METHOD_CREATE_ORDER, array( TradingApiSdk::CREATE_ORDER_PARAMETER_TYPE => TradingApiSdk::ORDER_TYPE_SELL, TradingApiSdk::CREATE_ORDER_PARAMETER_PAYMENT_OPTION => TradingApiSdk::ORDER_PAYMENT_OPTION_ONLY_EXPRESS, TradingApiSdk::CREATE_ORDER_PARAMETER_PRICE => 500, TradingApiSdk::CREATE_ORDER_PARAMETER_MAX_AMOUNT => 0.1 )); echo '<pre>'; print_r($result); echo '</pre>'; ?> Edited June 10, 2016 by 4ley 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now