Skip to content

Function: assertMarginType() ​

ts
function assertMarginType(marginType: string): marginType is MarginType;

Simple guard for non-TypeScript users, throw a runtime error if value doesn't match type

Parameters ​

ParameterType
marginTypestring

Returns ​

marginType is MarginType

Built by Siebly. Open source SDKs for exchange APIs.