Discover Packages
github.com/naruebaet/bitkub-sdk
bksdk
request
package
Version:
v1.4.1
Opens a new window with list of versions in this module.
Published: Feb 19, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types ValidateResolution(value) type CancelOrder type PlaceAsk type PlaceBid (p) Validate() (p) Validate() (p) Validate()
Documentation
¶
ValidateResolution checks if the given value is a valid resolution and returns the corresponding resolution value.
If the value is not valid, it returns an error.
type CancelOrder struct {
Symbol string `json:"sym"`
ID string `json:"id"`
Side string `json:"sd" oneof:"buy sell"`
Hash string `json:"hash"`
}
type PlaceAsk struct {
Symbol string `json:"sym"`
Type string `json:"typ" validate:"oneof=limit market"`
ClientID string `json:"client_id"`
Amount float64 `json:"amt"`
Rate float64 `json:"rat"`
}
type PlaceBid struct {
Symbol string `json:"sym"`
Type string `json:"typ" validate:"oneof=limit market"`
ClientID string `json:"client_id"`
Amount float64 `json:"amt"`
Rate float64 `json:"rat"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.