embedded

package
v0.0.2-0...-13a971e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

Get CSRF Token

GET /api/v1/auth/csrf_token

Login

POST /api/v1/auth/login
headers: {'Accept':'/','X-CSRF-Token':<CSRF_TOKEN>}
data: {'username':'','password':''}

Returns session cookie in response header set-cookie

User Balances

GET /api/v1/user/balances
headers: {'Accept':'/','Cookie':}

POST Order

POST /api/v1/exchange/orders
data: {"chain-id":"xar-chain-zafx","market_id":"1","direction":"BID|ASK","price":"100000000","quantity":"100000000","type":"LIMIT","time_in_force":100},
headers: {'Accept':'/','Cookie':}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostProcessResponse

func PostProcessResponse(w http.ResponseWriter, cliCtx client.CLIContext, resp interface{})

Types

type BlockInclusion

type BlockInclusion struct {
	BlockNumber     int64  `json:"block_number"`
	TransactionHash string `json:"block_hash"`
	BlockTimestamp  string `json:"block_timestamp"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL