kraken-futures-api-demo
💰 A Kraken Futures API demo, including authentication, book updating, sending and canceling orders.(Kraken Futures交易所的API示例,包含认证、订单簿更新、发送订单和取消订单功能。)
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.6%) to scientific vocabulary
Keywords
Repository
💰 A Kraken Futures API demo, including authentication, book updating, sending and canceling orders.(Kraken Futures交易所的API示例,包含认证、订单簿更新、发送订单和取消订单功能。)
Basic Info
Statistics
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Kraken Futures API Demo
Introduction

A Kraken Futures API demo, including authentication, book updating, sending and canceling orders.
console
2022/09/13 20:38:06 {Price:20305.5 Quantity:80135 Type:Ask}
2022/09/13 20:38:09 {Price:20299.5 Quantity:0 Type:Ask}
2022/09/13 20:38:10 {Price:20300.5 Quantity:21654 Type:Ask}
2022/09/13 20:38:11 {Price:20317.5 Quantity:22965 Type:Ask}
2022/09/13 20:38:11 {Price:20508 Quantity:0 Type:Ask}
2022/09/13 20:38:12 {Price:20507 Quantity:81087 Type:Ask}
2022/09/13 20:38:12 {Price:20086 Quantity:0 Type:Bid}
2022/09/13 20:38:13 {Price:20320 Quantity:5172 Type:Ask}
Getting Started
Prerequisites
- Install Go.
- Set the API key in the
src/authkeyfolder if you need to control orders.
Building
Set the location to the src folder and run:
bash
go build -tags debug
Or
bash
go build -tags release
Note that the debug version and the release version use different URLs.
src/client/api/url_debug.go
go
const WsURL string = "wss://demo-futures.kraken.com/ws/v1"
const RestURL string = "https://demo-futures.kraken.com"
src/client/api/url_release.go
go
const WsURL string = "wss://futures.kraken.com/ws/v1"
const RestURL string = "https://futures.kraken.com"
Class Diagram
```mermaid classDiagram
class OrderType {
<
class Order { float price float quantity OrderType type }
Order --> OrderType
class Book { map[float]float bids map[float]float asks Update(delta) Order }
Book ..> Order
class Auth { string apikey string apisecret
Authentication(end_point, post_data) : (nonce, authent)
}
class API { GetOpenPos() float SendOrder(Order) id CancelOrder(id) bool }
API --> Auth API ..> Order
class Kraken { Start(product) }
Kraken --> Book Kraken --> API ```
License
Distributed under the MIT License. See LICENSE for more information.
Owner
- Name: Zhuagenborn
- Login: Zhuagenborn
- Kind: organization
- Location: Ireland
- Repositories: 3
- Profile: https://github.com/Zhuagenborn
Software Development | Artificial Intelligence | Reverse Engineering.
Citation (CITATION.cff)
cff-version: 1.2.0 authors: - family-names: Chen given-names: Zhenshuo orcid: https://orcid.org/0000-0003-2091-4160 - family-names: Liu given-names: Guowen orcid: https://orcid.org/0000-0002-8375-5729 title: Kraken Futures API Demo date-released: 2021-07-23 url: https://github.com/Zhuagenborn/Kraken-Futures-API-Demo
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- github.com/gorilla/websocket v1.4.2
- github.com/gorilla/websocket v1.4.2