Prime API: Difference between revisions
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
===Get my deposit address=== | ===Get my deposit address=== | ||
GET /v1/private/deposit_address/:currency_name.json | GET /v1/private/deposit_address/:currency_name.json | ||
Line 20: | Line 21: | ||
curl -v --request GET http://localhost:3000/v1/private/deposit_address/BTC.json --header 'Authorization: PrimeExchange 84ffsOscok1Asbbqj28gcscv86M3nj4bRIamFaKe' | curl -v --request GET http://localhost:3000/v1/private/deposit_address/BTC.json --header 'Authorization: PrimeExchange 84ffsOscok1Asbbqj28gcscv86M3nj4bRIamFaKe' | ||
</source> | </source> | ||
{"address":"n2Ccn5em9gcQyBe2QvZnfzzXq8EZh1ncJj"} |
Revision as of 21:20, 7 February 2014
Prime API is based on JSON, delivered through HTTPS and is mostly REST-ful.
Public API
Public API calls are available without authentication.
Private API
Private API calls require authentication via:
- Your personal API key and optionally
- IP address
Private API is off by default. You need to enable it in your profile.
Get my deposit address
GET /v1/private/deposit_address/:currency_name.json
curl -v --request GET http://localhost:3000/v1/private/deposit_address/BTC.json --header 'Authorization: PrimeExchange 84ffsOscok1Asbbqj28gcscv86M3nj4bRIamFaKe'
{"address":"n2Ccn5em9gcQyBe2QvZnfzzXq8EZh1ncJj"}