coinfloor / api Goto Github PK
View Code? Open in Web Editor NEWAll you need to know about the APIs for Coinfloor's Trade Engine
License: Apache License 2.0
All you need to know about the APIs for Coinfloor's Trade Engine
License: Apache License 2.0
The limits docs have the following for open orders queries:
Open orders | 1,000 per user
1000 per user? Surely there's a time period missing here?
For transfers
For trades:
Order
I know the web socket feed is preferred to the REST API but it doesn't help when querying for historical data.
Good day,
I see in the documentation that you do not support withdrawals. Is this on the roadmap to be developed? And if so, is it possible to get an ETA?
Thanks,
Jevon
https://github.com/coinfloor/API/blob/master/BIST.md#order-book
What does the text:
Please refer to the Date HTTP response header for any date or time information you may require.
mean in relation to getting gan order book?
Currently, to generate a signature for the websocket:
The problem is not all 224-bit numbers are valid private keys. As per secp224k1, the number needs to be under the order n of G
n = 01 00000000 00000000 00000000 0001DCE8 D2EC6184 CAF0A971 769FB1F7
Therefore, there is a chance (small but not zero) a user being unable to authenticate, due to their ID/password combination's hash falling outside of the valid range.
the https://github.com/coinfloor/API/blob/master/BIST.md#user-transactions endpoint requires a currency pair. What do I specify if i just want to get a list of my deposits and withdrawals?
It is not clear from the documentation. How should I construct the url?
I downloaded some transaction data via the coinfloor REST API a while ago and recorded it to disk. When I recently downloaded the same data I noticed that I had what appeared to be a bunch of over filled orders. On closer inspection I noticed that I have two almost identical trades for a single order, differing only by their id.
The trade as it looks today is this:
{
"datetime": "2017-08-05 03:42:40",
"id": 1501904560496851,
"type": 2,
"xbt": "0.1000",
"xbt_usd": "2678.00",
"usd": "-267.80",
"fee": "0.00",
"order_id": 85721093
}
But in the past i had this:
{
"datetime": "2017-08-05 03:42:40",
"id": 1501904560496850,
"type": 2,
"xbt": "0.1000",
"xbt_usd": "2678.00",
"usd": "-267.80",
"fee": "0.00",
"order_id": 85721093
}
(Identical values apart from the id)
But this older version of the trade (1501904560496850) is no longer returned but the API. It's as if the trade id isn't constant. Does it change? Could someone explain what's happened please?
It's mentioned that Coinfloor has libraries for popular languages but at the end of the link https://github.com/coinfloor/API/ I just see text files. Can you clarify?
I need access to historical data for tax and accountancy purposes. I see that access delisted markets from the REST API results in an error. Can you please reintroduce them?
Can you please add an API call the details the various precisions allowed in each of the markets and currencies?
Just trying a ticker request in my browser gets me:
{"last":"7813.00","high":"8000.00","low":"7630.00","vwap":"7826.60","volume":"233.6178","bid":"7794.00","ask":"7819.00"}
These look like floating point to me. Can you clarify?
https://github.com/coinfloor/API/blob/master/BIST.md#open-orders
Does the open order amount show the amount remaining (of a partially filled order), or the original amount? Why not have both?
Some of my orders are not being 100% filled. I have submitted several and they are being executed but the volume is not quite 100% of the volume I requested. I am trading using the API.
For example: I submitted a limit bid order for at price 1800 for 0.1000 BCH/GBP on Mon Jan 08 21:18:49 GMT 2018. The order id was 129356589, the trade has executed and there is no open order remaining.
The trade that was executed (according to your api) was:
{
"datetime": "2018-01-08 21:18:50",
"id": 1515446330350463,
"type": 2,
"bch": "0.0997",
"bch_gbp": "1800.00",
"gbp": "-179.46",
"fee": "0.54",
"order_id": 129356589
}
You can see the BCH quantity is no correct, it's a little short. This happens quite often, but not always - some trades are 100% filled.
Hi,
I see when a buy market order is placed, the documentation indicates that only "remaining - how much of the requested quantity or total could not be traded" is return. Is there no order Id generated for market Orders?
Requesting the orders via the 'user_transactions' API gives me:
{ datetime: '2018-12-14 13:03:15', id: 1544792595874781, type: 2, xbt: '0.0192', xbt_gbp: '2612.00', gbp: '-50.15', fee: '0.15', order_id: null }
This shows a null for 'order_id'. Is this right? If so, what method is there for me to match a particular buy market trade with the my trade history (user_transactions)?
I'm trying to manage a copy of the orderbook using the websocket feed. Do you have a working example (possibly the one you use on your website) that shows how to manage the different messages that come in?
Is there no way around that, it is not secure?
Hey, another idea, why don't you create a postman template for the community
https://learning.postman.com/docs/postman-for-publishers/postman-templates/add-templates/
So that developers can easily download some sample collections straight into Postman.
I wanted to place some test orders. Is there somewhere I can find the minimum order size?
I found this https://coinfloor.zendesk.com/hc/en-us/articles/201721837-What-is-the-minimum-amount-of-bitcoin-that-can-be-traded-. Is it accurate? And what about the BCH markets?
Is ETH/GBP available over the API? I'm getting You specified an invalid asset pair. (HTTP status code: 404)
The websocket docs say this, for the response structures where an order price is quoted:
"price is the price at which the order had offered to trade, scaled by a factor of 10000."
However in practice this is not the case. For XBT/GBP at least, the price is in fact scaled by a factor of 100. This is actually what is documented in the scale docs, so should I assume that it is 100 in all pairs? As you may appreciate, it is very difficult to test these things without risking money.
I am trying to call: https://webapi.coinfloor.co.uk:8090/bist/XBT/GBP/ticker/ using JavaScript but get a cors issue:
Failed to load https://webapi.coinfloor.co.uk:8090/bist/XBT/GBP/ticker/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
fetch('https://webapi.coinfloor.co.uk:8090/bist/XBT/GBP/ticker/').then(response => {
return response.json();
}).then((data) => {
console.log(data);
}).catch((err) => {
console.log(err)
});
@kamilbolka has the websocket authentication method changed? I'm getting You sent an incorrect login cookie.
The example url in the account balance documentation is this: https://webapi.coinfloor.co.uk:8090/bist/XBT/GBP/balance/
Why are there two currencies? Can I add more? Can I specify only one?
Also, the docs states that I need these 3 parameters:
User ID - user ID
API key - api key
Passphrase - passphrase
That's not correct, is it?
I've subscribing to one and only one orderbook feed in my process
{ message: 'subscribing to ob feed',
key: '63488.64032',
marketSymbol: 'BTC/GBP',
baseMapping: { ccy: 'XBT', scale: 10000, id: 63488 },
quoteMapping: { ccy: 'GBP', scale: 100, id: 64032 } }
But I occasionally get events for another channel:
{ base: 63488,
counter: 64000,
id: 35119760,
notice: 'OrderClosed',
price: 811700,
quantity: -28,
tonce: 1590511543, }
Hey, I think you should implement Github Pages on here to make your API docs better.
Cool customisable templates are also available
https://pages.github.com/
Is there a way to get my trading fee from the API?
I've trying to keep an in memory copy of the order book in a nodes app using the event stream (https://webapi.coinfloorex.com:8090/event-stream).
Which events do I need to listen to in order to be able to keep an accurate representation of the current order book?
Is there a method in the coinfloor.py
module (in Python) that allows the user to get all trades between a start and end date for a given currency ? or instruction on how to do this please ?
thanks.
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.