Skip to content

Commit

Permalink
Quoine での 約定数量確認エラーを対応
Browse files Browse the repository at this point in the history
「TypeError: Cannot read property 'toString' of null」
約定数量確認時に上記エラーが発生した。
対応として
- APIで定義されていないレスポンスを、any へ変更した。
- trailing_stop_type、trailing_stop_value については type.ts上ではboolean型で定義されており、APIでは、何も定義されていない。かなり怪しいので定義自体を削除しました。

参考:
bitrinjani#149
  • Loading branch information
coin-comachi committed Jan 24, 2019
1 parent cc13b41 commit 1ab2e2c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Quoine/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export class SendOrderResponse extends Castable {
@cast funding_currency: string;
@cast crypto_account_id?: any;
@cast currency_pair_code: string;
@cast average_price: string;
@cast target: string;
@cast average_price?: any;
@cast target?: any;
@cast order_fee: string;
@cast source_action: string;
@cast source_action?: any;
@cast unwound_trade_id?: any;
@cast trade_id?: any;
}
Expand Down Expand Up @@ -72,15 +72,13 @@ export class OrdersResponse extends Castable {
@cast funding_currency: string;
@cast crypto_account_id?: any;
@cast currency_pair_code: string;
@cast average_price: string;
@cast target: string;
@cast average_price?: any;
@cast target?: any;
@cast order_fee: string;
@cast source_action: string;
@cast source_action?: any;
@cast unwound_trade_id?: any;
@cast trade_id: string;
@cast trade_id?: any;
@cast settings?: any;
@cast trailing_stop_type: boolean;
@cast trailing_stop_value: boolean;
@cast
@element(Execution)
executions: Execution[];
Expand Down

0 comments on commit 1ab2e2c

Please sign in to comment.