Class RESTClient

Hierarchy

  • EventEmitter
    • RESTClient

Constructors

  • Parameters

    • baseURL: string
    • signRequest: ((setup: RequestSetup) => Promise<SignedRequest>)
        • (setup): Promise<SignedRequest>
        • Parameters

          • setup: RequestSetup

          Returns Promise<SignedRequest>

    Returns RESTClient

Properties

account: AccountAPI
currency: CurrencyAPI
exchangeRate: ExchangeRateAPI
fee: FeeAPI
fill: FillAPI
order: OrderAPI
product: ProductAPI
profile: ProfileAPI
time: TimeAPI
transfer: TransferAPI
user: UserAPI
withdraw: WithdrawAPI

Accessors

  • get interceptors(): {
        request: AxiosInterceptorManager<AxiosRequestConfig<any>>;
        response: AxiosInterceptorManager<AxiosResponse<any, any>>;
    }
  • Returns {
        request: AxiosInterceptorManager<AxiosRequestConfig<any>>;
        response: AxiosInterceptorManager<AxiosResponse<any, any>>;
    }

    • request: AxiosInterceptorManager<AxiosRequestConfig<any>>
    • response: AxiosInterceptorManager<AxiosResponse<any, any>>

Methods

  • Parameters

    • config: AxiosRequestConfig<any>

    Returns string