v1

package
v0.0.0-...-74d5043 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackTestsAccountsHandler

func BackTestsAccountsHandler(ctx context.Context) http.Handler

BackTestsAccountsHandler will serve the backtest accounts information swagger:route GET /api/v1/backtests/{id}/accounts Backtests V1 GetBacktestAccounts

Get accounts information from backtest

Produces:

  • application/json

Schemes: http, https

Responses:

default: GenericError
200: AccountsList

func BackTestsAdvanceHandler

func BackTestsAdvanceHandler(ctx context.Context) http.Handler

BackTestsAdvanceHandler will handle the backtests next ticks event route swagger:route POST /api/v1/backtests/{id}/advance Backtests V1 BacktestsAdvance

This will request for next ticks to be sent to opened websocket listening for ticks

Produces:

  • application/json

Schemes: http, https

Responses:

default: GenericError

200: NextBacktestTickResponse

func BackTestsEventsWsHandler

func BackTestsEventsWsHandler(ctx context.Context) http.Handler

BackTestsEventsWsHandler will serve the backtest websocket for events swagger:route GET /api/v1/backtests/{id}/events Backtests V1 events

Get a websocket with ticks happening in backtest

Produces:

  • application/json

Schemes: http, https

Responses:

default: GenericError
200: TickEvent

func BackTestsHandler

func BackTestsHandler(ctx context.Context) http.Handler

BackTestsHandler will handle the backtests creation route swagger:route POST /api/v1/backtests Backtests V1 CreateBacktest

Create a new backtest and upgrade the request into a Websocket

Produces:

  • application/json

Schemes: http, https

Responses:

default: GenericError
200: CreateBacktestResponse

func BackTestsNewOrderHandler

func BackTestsNewOrderHandler(ctx context.Context) http.Handler

BackTestsNewOrderHandler will process new order requests swagger:route POST /api/v1/backtests/{id}/orders Backtests V1 NewOrder

Create a new order in a backtest

Produces:

  • application/json

Schemes: http, https

Responses:

default: GenericError
200: Order

func BackTestsOrdersHandler

func BackTestsOrdersHandler(ctx context.Context) http.Handler

BackTestsOrdersHandler will serve the backtest orders information swagger:route GET /api/v1/backtests/{id}/orders Backtests V1 GetBacktestOrders

Get orders information from backtest

Produces:

  • application/json

Schemes: http, https

Responses:

default: GenericError
200: OrdersList

func BackTestsTickEventsSubscriptionsHandler

func BackTestsTickEventsSubscriptionsHandler(ctx context.Context) http.Handler

BackTestsTickEventsSubscriptionsHandler will register ticks subscriptions swagger:route GET /api/v1/backtests/{id}/subscriptions/ticks Backtests V1 ticksSubscription

Subscribe to new ticks from an exchange, a pair and a period

Produces:

  • application/json

Schemes: http, https

Responses:

default: GenericError
200: SubscribeTicksResponse

func RegisterApiRoutes

func RegisterApiRoutes(ctx context.Context, router *mux.Router)

func RegisterWebsocketRoutes

func RegisterWebsocketRoutes(ctx context.Context, router *mux.Router)

Types

This section is empty.

Jump to

Keyboard shortcuts

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