@steerprotocol/strategy-utils 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as JSON from '@serial-as/json'
|
|
2
|
-
import {console} from '../console'
|
|
3
2
|
|
|
4
3
|
@serializable
|
|
5
4
|
export class Candle{
|
|
@@ -34,8 +33,5 @@ export function parsePrices(_data: string): Array<Candle> {
|
|
|
34
33
|
export function parseCandles(_data: string): Array<Candle> {
|
|
35
34
|
// Parse an object using the JSON object
|
|
36
35
|
let parsed: Array<Candle> = JSON.parse<Array<Candle>>(_data);
|
|
37
|
-
|
|
38
|
-
console.log('parsed: ' + parsed.toString())
|
|
39
|
-
|
|
40
36
|
return parsed;
|
|
41
37
|
}
|