Documentation ¶
Index ¶
- func BackTestsAccountsHandler(ctx context.Context) http.Handler
- func BackTestsAdvanceHandler(ctx context.Context) http.Handler
- func BackTestsEventsWsHandler(ctx context.Context) http.Handler
- func BackTestsHandler(ctx context.Context) http.Handler
- func BackTestsNewOrderHandler(ctx context.Context) http.Handler
- func BackTestsOrdersHandler(ctx context.Context) http.Handler
- func BackTestsTickEventsSubscriptionsHandler(ctx context.Context) http.Handler
- func RegisterApiRoutes(ctx context.Context, router *mux.Router)
- func RegisterWebsocketRoutes(ctx context.Context, router *mux.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackTestsAccountsHandler ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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
Types ¶
This section is empty.