帮助中心 > 公告中心

开放 APIkey 公告

1.此 API 用于查询用户的资产列表。

HTTP Request

        http://ie.cash/index.php?g=V1&m=Api&a=balance&apikey= 

需要参数 :

                     APIKEY    必要

返回值:

                {"code":200,"result":{

                "ICC":{"available":"0","freeze":"0"},

                "ETH":{"available":"0","freeze":"0"},

                "TUSD":{"available":"0","freeze":"0"},

                "_1080TI"{"available":"0","freeze":"0"},

                "BK-N":{"available":"0","freeze":"0"},

                "BK-B":{"available":"0","freeze":"0"},

                "L3+":{"available":"0","freeze":"0"}},

                "id":1537954869}

2. 此 API 用于 获取交易对订单

HTTP Request

        http://ie.cash/index.php?g=V1&m=Api&a=orders&apikey= &market= &type= &limit = 

需要参数: 

                  market(交易对)          必要

                 type   (买/卖)(0/1)    可选

                 limit      获取数量           可选

        返回值:

                     {"code":200,"result":

                        {"offset":0,"limit":1,"total":22,"orders":[

                            {"id":8626x,

                                    "market":"ICC/ETH",

                                    "source":"",

                                    "type":1,"side":1,"user":0,

                                    "ctime":1537949252.0467,

                                    "mtime":1537949252.0467,

                                    "price":"0",

                                    "amount":"0",

                                    "taker_fee":"0.002",

                                    "maker_fee":"0.003",

                                    "left":"49",

                                    "deal_stock":"0",

                                    "deal_money":"0",

                                    "deal_fee":"0"

                                     }]},

                                    "id":1537955919

                                    }


3. 此 API 用于查询已完成订单

HTTP Request

     http://ie.cash/index.php?g=V1&m=Api&a=sel_orders&apikey= &market= &type= &limit = 

需要参数: 

                      APIKEY                         必要

                     market(交易对)       必要

                     limit     ( 获取数量)      可选

        返回值:

                     {"code":200,"result":

                            {"offset":0,

                                    "limit":1,"records":[{

                                                        "id":8641x,

                                                        "ctime":1537956081.0173,

                                                        "ftime":1537956081.0173,

                                                        "user":0,

                                                        "market":"ICC/ETH",

                                                        "source":"",

                                                        "type":1,

                                                        "side":2,

                                                        "price":"0.00000998",

                                                        "amount":"49",

                                                        "taker_fee":"0.002",

                                                        "maker_fee":"0.003",

                                                        "deal_stock":"49",

                                                        "deal_money":"0.00048902",

                                                        "deal_fee":"0.098"

                                                        }]},

                                                        "id":1537956222

                                                        }


4. 此 API 用于获取订单

HTTP Request

        http://ie.cash/index.php?g=V1&m=Api&a=pendingorders&apikey= &market= &type= &limit =

需要参数 :

                  APIKEY                          必要

                market(交易对)         必要

                limit      获取数量          可选

        返回值:

                     {"code":200,"result":

                            {"offset":0,"limit":1,"records":[{"id":0,

                                                                            "ctime":1537956081.0173,

                                                                            "ftime":1537956081.0173,

                                                                            "user":0,

                                                                            "market":"ICC/ETH",

                                                                            "source":"",

                                                                            "type":1,

                                                                            "side":2,

                                                                            "price":"0.00000998",

                                                                            "amount":"49",

                                                                            "taker_fee":"0.002",

                                                                            "maker_fee":"0.003",

                                                                            "deal_stock":"49",

                                                                            "deal_money":"0.00048902",

                                                                            "deal_fee":"0.098"

                                                                            }]},

                                                                            "id":153795622

                                                                            }


5. 此 API 用于取消订单

       HTTP Request

       http://ie.cash/index.php?g=V1&m=Api&a=cancel_order&apikey= &market= &order_id=

需要参数 :

                       APIKEY                       必要

                      market(交易对)        必要

                      order_id (订单ID)  必要

返回值:

           {"code":200,"result":"success","msg":"Cancel the success"}

        

6.此 API 用于发起限价订单

        HTTP Request

        http://ie.cash/index.php?g=V1&m=Api&a=price_order&apikey= &market= &order_id= &buy= &number= &price = 

需要参数:

                  APIKEY                           必要

                 market(交易对)          必要

                 buy(卖/买)(1/2)    必要

                 number (数量)               必要

                 price (单价)                必要

        返回值:

                {"code":200,"result":"success","msg":"Price limit order is successful"}


7. 此 API 用于发起市价订单

HTTP Request

        http://ie.cash/index.php?g=V1&m=Api&a=market_order&apikey= &market= &order_id= &buy= &number= &price = 

需要参数 :

                      APIKEY                         必要

                     market(交易对)         必要

                     buy(卖/买)(1/2)   必要

                     number (数量)              必要

        返回值:

                     {"code":200,"result":"success","msg":"market order is successful"}


状态码说明

400 失败

401 APIKEY 有误

500 服务器异常

200 成功


互联现金

普通人区块链入口

(C) 2018 ie.cash