Skip to content

stejin/Coinigy.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinigy.jl

Call Coinigy REST and WebSockets API from Julia

Installation

Pkg.clone("https://github.com/stejin/DandelionWebSockets.jl.git")
Pkg.clone("https://github.com/stejin/Coinigy.jl.git")

Usage

Create an instance of CoinigyHandler and use it to call REST or WebSocket methods.

using Coinigy

handler = CoinigyHandler(public_key = "public key", private_key = "private key", force_authentication = true)
Coinigy.connect(handler)

# Wait for connection to complete

# Exchanges - retrieved via WebSockets API on connect
Exchanges

# Channels - retrieved via WebSockets API on connect
Channels

# Get list of markets via REST call
markets = getMarkets(handler)["data"]

# Subscribe to 'TICKER' channel via WebSockets API

print_ticker(data) = println(data)

Coinigy.subscribe(handler, "TICKER", print_ticker)

For more usage examples see console/coinigy_console.jl

About

Coinigy client for Julia language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages