API POST Fields (in addition to the Main Fields described in the Introduction)
Field Name | Description | Required? |
---|
Get Conversion Information |
---|
cmd | get_conversion_info | Yes |
id | The conversion ID to query. | Yes |
API Response
A successful call to the 'get_conversion_info' command will give you a result similar to this (JSON):
{
"error":"ok",
"result":{
"time_created":1484070042,
"status":2,
"status_text":"Complete",
"coin1":"BTC",
"coin2":"LTC",
"amount_sent":100000,
"amount_sentf":"0.00100000",
"received":15369892,
"receivedf":"0.15369892"
}
}
Status values:
- 2 = Complete
- 1 = Funds Sent
- 0 = Pending
- -1 = Cancelled
- -2 = Cancelled: Below ShapeShift Minimum
- -3 = Cancelled: Above ShapeShift Maximum
- These are all of the values at the time of this writing but it can be assumed any other negative number is a cancelled conversion as well.