Asset Exchange (done)
Any info / instructions on the usage of the asset exchange? Thanks
Here is short description of API that I sent to nexern:
? requestType=issueAsset & secretPhrase=123 & name=cfbBTCx1 & description=This+is+BTC+issued+by+Come-from-Beyond & quantity=500 & fee=1000 & referencedTransaction=65374835678
name = must contain only digits and latin letters, length from 3 to 10 chars
description = can contain any unicode symbols, length from 0 to 1000 chars, can be omitted
quantity = any qty from 1 to 1'000'000'000
fee = atm 1'000 NXT is min fee
Returns transaction id which is also asset id
? requestType=getAssetIds
Returns array of all asset ids: {"assetIds":["923860986719836", "46556984592384756298", "87918658237693184156"]}
? requestType=getAsset & asset=46556984592384756298
Returns asset info: {"account":"334765832685676", "name":"cfbBTCx1", "description":"This is BTC issued by Come-from-Beyond", "quantity":500}
"account" is the account of the asset issuer
"description" won't be returned if its length == 0
? requestType=transferAsset & secretPhrase=123 & recipient=81623458239475 & asset=46556984592384756298 & quantity=45 & fee=1 & deadline=1440 & referencedTransaction=65374835678
"referencedTransaction" can be omitted
Returns transaction id
? requestType=placeAskOrder/placeBidOrder & secretPhrase=123 & asset=46556984592384756298 & quantity=70 & price=145 & fee=1 & deadline=1440 & referencedTransaction=65374835678
"price" in CENTS! So "145" == 1.45 NXT
"referencedTransaction" can be omitted
Returns transaction id which is also order id
? requestType=getAskOrderIds/getBidOrderIds
Returns array of all ask/bid orders: {"askOrderIds":["3467356724512", "824756987236452]}
? requestType=getAskOrder/getBidOrder & order=3467356724512
Returns ask/bid order info: {"account":"334765832685676", "asset":"46556984592384756298", "quantity":70, "price":145}
"account" is the account of the order owner
"price" in CENTS! So "145" == 1.45 NXT
? requestType=cancelAskOrder/cancelBidOrder & secretPhrase=123 & order=3467356724512 & fee=1 & deadline=1440 & referencedTransaction=65374835678
Returns transaction id