https://github.com/ismaelvsqz/cexio
Unofficial CEX.IO Rest API Go Client.
https://github.com/ismaelvsqz/cexio
cexio go golang rest-api
Last synced: 17 days ago
JSON representation
Unofficial CEX.IO Rest API Go Client.
- Host: GitHub
- URL: https://github.com/ismaelvsqz/cexio
- Owner: ismaelvsqz
- License: mit
- Created: 2021-02-04T19:47:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-07T16:08:20.000Z (over 5 years ago)
- Last Synced: 2025-12-19T02:33:17.718Z (6 months ago)
- Topics: cexio, go, golang, rest-api
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unofficial CEX.IO Rest API Go Client.
This library simplifies the CEX.IO Rest API consumption.
# Example
The following example shows two calls. One is private and the other is public.
package main
import (
"fmt"
"github.com/ismaelvsqz/cexio"
)
func main() {
api := cexio.API{
Username: "up00000001",
APIKey: "XXXXXXXXXXXXX",
APISecret: "YYYYYYYYYYYYY"}
resp, err := api.Do(cexio.Request{
Method: cexio.MethodActiveOrdersStatus,
Data: map[string]interface{}{"orders_list": []string{"111111111", "22222222222"}},
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%s\n", resp)
resp, err = api.Do(cexio.Request{
Method: cexio.MethodTicker,
Parameters: []string{"BTC", "USD"},
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%s\n", resp)
}
# License
Copyright 2021 Juan Ismael Vasquez . All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.