Closed kadirgunhiz closed 2 years ago
curl_setopt($ch, CURLOPT_POSTFIELDS, 'OrderMethod=1&'.
'OrderType=1&'.
'total=1000&'.
'totalPrecision=00&'.
'amount='0'&'.
'amountPrecision=01&'.
'price='1000&'.
'pricePrecision=00&'.
'triggerPrice=0&'.
'triggerPricePrecision=00&'.
'DenominatorPrecision=2&'.
'PairSymbol=BTCTRY');
OrderType 0 Alım, 1 Satış, OrderMethod 0 = Limit, 1 = Market, 2 = Stop Limit ve 3 = Stop Market
Precision olarak geçen parametreler ise gireceğiniz fiyat/miktar da '.' dan sonrasıdır.
Anlık kur üzerinden btc alacak isem;
amount ve amountPrecision a alacağım BTC miktarını price ve pricePrecision miktarınıda anlık BTC kuruna göre yapmalıyım o halde değil mi ? AyrıcaOrderType 0 OrderMethod 1 olması gerekiyor?
Örnek siz piyasa fiyatından 0.001 BTC almak istiyorsunuz, piyasa fiyatımız da 30,744.00 TL olsun. parametreler şöyle olmalı;
amount = 0,
amountPrecision = 001,
price = 30744,
pricePrecision = 00,
triggerPrice = 0,
triggerPricePrecision=00,
total = 30,
totalPrecision = 00
DenominatorPrecision = 2,
PairSymbol = BTCTRY,
OrderMethod = 1,
OrderType = 0,
Anladım sağolun satarken de sadece satacağımız btc rakamını, btc kurunu, order type ı değiştirerek yapabilirim. Teşekkürler.
Merhaba,
`function authPost($uri) { $url=$GLOBALS['baseURL'].$uri; $nonce=time(); $headers=array( 'X-PCK: '.$GLOBALS['APIKey'], 'X-Stamp: '.$nonce, 'X-Signature: '.$GLOBALS['signature'] );
Fonksiyonunu kullarak alış ve satış yapmaya çalışıyorum fakat alış ve satış yaparken hangi parametreleri göndermem gerekiyor ekstra, döküman üzerinden anlayamadım. Yardımcı olursanız sevinirim.