Chat

Trollbox
Users Online: 531

Public API


sa_ddam213
Gender: Male
Country: New Zealand
Threads: 18, Posts: 91
#0

Public API


 

GetCurrencies
Returns all currency data
{
    "Success":true,
    "Message":null,
    "Data":[
            {
                "Id":1,
                "Name":"Bitcoin",
                "Symbol":"BTC",
                "Algorithm":"sha256"
"WithdrawFee":0.00010000,
"MinWithdraw":0.00040000,
"MinBaseTrade":0.0,
"IsTipEnabled":false,
"MinTip":0.0,
"DepositConfirmations":6,
"Status":"Maintenance",
"StatusMessage":"Unable to sync network" }, { ... } ] }

 

GetTradePairs
Returns all trade pair data
{
    "Success":true,
    "Message":null,
    "Data":[{
                "Id":104,
                "Label":"LTC/BTC",
                "Currency":"Litecoin",
                "Symbol":"LTC",
                "BaseCurrency":"Bitcoin",
                "BaseSymbol":"BTC",
                "Status":"OK",
                "StatusMessage":"",
                "TradeFee":"0.20000000",
                "MinimumTrade":"0.00000001,
                "MaximumTrade":"1000000000.00000000",
                "MinimumBaseTrade":"0.00000500",
                "MaximumBaseTrade":"1000000000.00000000",
                "MinimumPrice":"0.00000001",
                "MaximumPrice":"1000000000.00000000" }, { ... }] }

 

GetMarkets
Returns all market data
Param: hours (optional, default: 24)
{
    "Success":true,
    "Message":null,
    "Data":[{
                "TradePairId":100,
                "Label":"LTC/BTC",
                "AskPrice":0.00006000,
                "BidPrice":0.02000000,
                "Low":0.00006000,
                "High":0.00006000,
                "Volume":1000.05639978,
                "LastPrice":0.00006000,
                "LastVolume":499.99640000,
                "BuyVolume":34455.678,
                "SellVolume":67003436.37658233,
                "Change":-400.00000000
            },
            {
                ...
            }]
}
        

 

GetMarket
Returns market data for the specified trade pair
Param: tradePairId (Required)
Param: hours (optional, default: 24)
{
    "Success":true,
    "Message":null,
    "Data":{
                "TradePairId":100,
                "Label":"LTC/BTC",
                "AskPrice":0.00006000,
                "BidPrice":0.02000000,
                "Low":0.00006000,
                "High":0.00006000,
                "Volume":1000.05639978,
                "LastPrice":0.00006000,
                "LastVolume":499.99640000,
                "BuyVolume":67003436.37658233,
                "SellVolume":67003436.37658233,
                "Change":-400.00000000
            }
}
        

 

GetMarketHistory
Returns the market history data for the specified tarde pair.
Param: tradePairId (Required)
{
    "Success":true,
    "Message":null,
    "Data":[{
            "TradePairId":100,
            "Label":"LTC/BTC",
            "Type":"Sell",
            "Price":0.00006000,
            "Amount":499.99640000,
            "Total":0.02999978,
            "Timestamp": 1418297368
            },
            {
                ....
            }]
}
        

 

GetMarketOrders
Returns the open buy and sell orders for the specified tarde pair.
Param: tradePairId (Required)
Param: orderCount (optional, default: 100)
{
    "Success":true,
    "Message":null,
    "Data":{
            "Buy":[{
                        "TradePairId":100,
                        "Label":"LTC/BTC",
                        "Price":0.00006000,
                        "Volume":455055.00360000,
                        "Total":27.303300
                   },
                   { 
                      ...
                   }],
            "Sell":[{
                        "TradePairId":100,
                        "Label":"LTC/BTC",
                        "Price":0.02000000,
                        "Volume":499.99640000,
                        "Total":9.999928
                    },
                    { 
                       ...
                    }],
            }
}
        

 



Posted: 9/7/2015 5:02:01 AM Edited: 7/17/2016 9:28:29 PM
porutchik
Gender: Unknown
Country: Unknown
Threads: 0, Posts: 1
#1

time for refresh? Is it good to get in 1/5/15 minutes or more?



Posted: 7/5/2016 7:54:28 AM
Spidersbox
Gender: Unknown
Country: Unknown
Threads: 1, Posts: 8
#2

Is there an API for wallet information like height ,difficulty, hash rate, money supply etc. ?



Posted: 7/18/2016 11:04:42 PM
MineCoins
Gender: Unknown
Country: Unknown
Threads: 0, Posts: 1
#3

Hello, you can make API you offer much easier to use (CORS) if you add Access-Control-Allow-Origin: * Header to HTTP reply.

 

it's definitely not what a programmer expects to see. Please add

Access-Control-Allow-Origin: *

to reply header. This missing header entry makes API almost unusable in some cases (javascript).



Posted: 12/3/2016 10:42:29 AM Edited: 12/3/2016 8:04:54 PM
cryptomaxsun
Gender: Male
Country: Ukraine
Threads: 0, Posts: 1
#4

Please tell me - how to add currency using api to their pool?
What do I need?



Posted: 12/4/2016 6:55:36 PM
dnp
Gender: Male
Country: Canada
Threads: 0, Posts: 2
#5

would be cool to have a public mining info api.

one that returns a given coin's hash algorithms supported, the network difficulty for each algorithm,

true/false on proof-of-stake supported (possibly its difficulty), the current cryptopia hashing rate,

pool stats (block number, shares submitted on block, number of miners, estimated shares needed, etc.)

 

 



Posted: 12/20/2016 5:51:24 PM
elbandi
Gender: Unknown
Country: Unknown
Threads: 0, Posts: 2
#6

+1 for mining api



Posted: 12/30/2016 1:37:05 PM