• 1.

      1. : https://api.pk.top/

      2. ;

      3. ;

      4. ;

      5. ;

      6. ;

    • 2.

      $param = array(

      amount => 1,

      price => 10000,

      type => 'buy',

      key => 'r5eb88920468848669b73b3afa8ac2053',

      sign => '459c69d25c496765191582d9611028b997483'

      );

    • 3.

    • 4. ()

      1.

      Path: /api/v1/ticker

      Request : GET

      symbol - 1,2...()

      high -

      low -

      buy -

      sell -

      last -

      vol -

      :

      {"code": 200,"data": {"high": 0.0,"vol": 0.0,"last": 0.999,"low": 0.0,"buy": 0.0,"sell": 0.0}}

      2.

      Path: /api/v1/tickers

      Request : GET

      symbol - 1,2...()

      high -

      low -

      buy -

      sell -

      last -

      vol -

      :

      {"code": 200,"data": [{"symbol": 1,"high": 0.0,"vol": 0.0,"last": 0.999,"low": 0.0,"buy": 0.0,"sell": 0.0}]}

      3.

      Path: /api/v1/depth

      Request : GET

      symbol - 1,2...()

      merge - 0(0,1,2,3,4)

      asks -

      bids -

      :

      {"data": 200,"data":{"asks": [[0.1,1873466.8251],...],"bids": [[0.1,3104.8],...]}}

      4.

      Path: /api/v1/orders

      Request : GET

      symbol - 1,2...()

      size -

      date -

      price -

      amount -

      type -

      :

      {"code": 200,"data": [{"date": 1466047511,"amount": 197.0472,"price": 0.999,"type": "sell"},...]}

    • 5. ()

      1.

      Path: /api/v1/balance

      Request : GET

      symbol - 1,2...()

      name - ()

      balance -

      frozen -

      :

      {"code": 200,"data":[{"symbol":1,"balance":"896.95478196","frozen":"71.04521804","name":"ETH"},...]}

      2.

      Path: /api/v1/coin_address

      Request : GET

      symbol - 1,2...()

      data -

      :

      {"code": 200,"data": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}

      3.

      Path: /api/v1/trade_list

      Request : GET

      symbol - 1,2...()

      since - 0

      type - [1: , 0: ]

      id - ID

      datetime - date and time

      type - "buy" or "sell"

      price -

      amount -

      left_amount -

      status - [1: ,2: ,3: ,4: ]

      :

      {"code": 200,"data": [{"datetime": "2016-06-17 15: 43: 10","amount": 724.5825,"price": 0.999,"id": 6280572,"left_amount": 0.0,"type": "sell","status": 3},...]}

      4.

      Path: /api/v1/trade_view

      Request : GET

      id - ID

      id - ID

      datetime - date and time

      type - "buy" or "sell"

      price -

      amount -

      left_amount -

      status - [1: ,2: ,3: ,4: ]

      :

      {"code": 200,"data": {"datetime": "2016-06-17 15: 43: 10","amount": 724.5825,"price": 0.999,"id": 6280572,"left_amount": 0.0,"type": "sell","status": 3}}

    • 6. (

      1.

      Path: /api/v1/cancel_trade

      Request : POST

      id - ID

      data - ID

      :

      {"code": 200, "data": "11111"}

      2.

      Path: /api/v1/trade

      Request : POST

      symbol - 1,2...()

      amount -

      price -

      type - "buy" or "sell"

      data - ID

      :

      {"code": 200,"data": 11112}

    • 7.

    • 8.

    • 9.

      101
      102
      103
      104
      105
      106
      201
      202
      203
      204
      205
      206
      207
      208
      209
      210
      211
      212
      213
      401
      402