krakenfx / kraken-api-client Goto Github PK
View Code? Open in Web Editor NEWExample client libraries for use with the kraken.com API.
License: MIT License
Example client libraries for use with the kraken.com API.
License: MIT License
Maybe this will be a dead end but I'm wondering if this project is still alive... I have been digging about your API but all that I hear is that your API is returning gateway errors and there is no word from the owner.
Any insights?
Cheers!
$kraken = new KrakenAPI('MY API KEY', 'MY API SECRET','https://api.kraken.com',0);
$res = $kraken->QueryPrivate('DepositAddresses', array(
'asset' => 'XBT',
'method' => 'Bitcoin',
'new' => true
));
dump($res);
DepositAddresses throws an error
array:1 [▼
"error" => array:1 [▼
0 => "EFunding:No funding method"
]
]
i tried manipulate parameters (asset = BTC, method = 'bitcoin', lowercase, uppercase..etc) but i'm receiving the same error always.
How do I should create a deposit address?
Hi,
I am using close option with parameter
$this->volume = .001;
$price = 1092.09;
$stop_loss = $price+10;
$take_profit = $price-10;
$param = [
'pair'=>$this->pair,
'type'=>'sell',
'ordertype'=>'stop-loss',
'price'=>$price,
'volume'=>$this->volume,
'leverage'=>'2:1',
'take-profit'=>$take_profit
'close' => array(
'ordertype' => 'stop-loss-profit',
'price' => '#.3%', // stop loss price (relative percentage delta)
'price2' => '#10' // take profit price (relative delta)
)
];
$res = $this->kraken->QueryPrivate('AddOrder', $param);
But always I am getting "invalid ordertype-close" . Can anyone help me where I am doing wrong?
As of now, the only way to call on our public endpoints is by using GET.
In the past it was possible to call on public endpoints using POST, however, this has been deprecated as of today.
The following endpoints are affected:
Time, SystemStatus, Assets, AssetPairs , Ticker , OHLC , Depth, Trades, and Spread
Hi, I wrote a few pieces of code to first connect to my api and then to display my balance (I've blocked out the password and api keys). I imported the first module and when I ran it, it worked! Here is the code:
Here is the first module named dontshare_config001 https://imgur.com/a/wt9w1JD
Here is the second piece of code: https://imgur.com/wtLJCOb
This works well but it fetches all the currency balances. I'd like to simply fetch the balance for say bitcoin or USD. How would I go about doing this?
Using the PHP library gives a :
Kraken EAPI: Invalid key with valid key pairs.
Same keys works with the nodeJS kraken library. However, it fails with the PHP library.
I get the JSON decode error pretty consistently with this.
I have a PHP script that does somewhere between 5 and 10 calls to the KrakenAPIClient.php. About half the time the page won't load due to the JSON decode error.
Is this a problem with kraken and not the provided KrakenAPIClient.php?
Thanks for your hard work. Crossing my fingers that 3 years after this was published that there is still someone out there listening!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.