binance-api-client
Version:
A wrapper which can be used to interact with Binance's API. Entirely developed in TypeScript.
30 lines (23 loc) • 528 B
text/typescript
/**
* Represents a single latest price for a particular symbol.
*/
export class LatestPrice {
private _symbol: string;
private _price: number;
constructor( json: any ) {
this._symbol = json.symbol;
this._price = json.price;
}
get symbol(): string {
return this._symbol;
}
set symbol( value: string ) {
this._symbol = value;
}
get price(): number {
return this._price;
}
set price( value: number ) {
this._price = value;
}
}