(rawOrder: Dict, market: Market = undefined)
| 1862 | } |
| 1863 | |
| 1864 | parseOrder (rawOrder: Dict, market: Market = undefined): Order { |
| 1865 | // |
| 1866 | // { |
| 1867 | // "subaccount_id": 130837, |
| 1868 | // "nonce": 1736923517552, |
| 1869 | // "module": "0x87F2863866D85E3192a35A73b388BD625D83f2be", |
| 1870 | // "expiry": 86400, |
| 1871 | // "owner": "0x108b9aF9279a525b8A8AeAbE7AC2bA925Bc50075", |
| 1872 | // "signer": "0x108b9aF9279a525b8A8AeAbE7AC2bA925Bc50075", |
| 1873 | // "signature": "0xaa4f42b2f3da33c668fa703ea872d4c3a6b55aca66025b5119e3bebb6679fe2e2794638db51dcace21fc39a498047835994f07eb59f311bb956ce057e66793d1c", |
| 1874 | // "data": { |
| 1875 | // "asset": "0xAFB6Bb95cd70D5367e2C39e9dbEb422B9815339D", |
| 1876 | // "sub_id": 0, |
| 1877 | // "limit_price": "10000", |
| 1878 | // "desired_amount": "0.001", |
| 1879 | // "worst_fee": "0", |
| 1880 | // "recipient_id": 130837, |
| 1881 | // "is_bid": true, |
| 1882 | // "trade_id": "" |
| 1883 | // } |
| 1884 | // } |
| 1885 | // { |
| 1886 | // "subaccount_id": 130837, |
| 1887 | // "order_id": "96349ebb-7d46-43ae-81c7-7ab390444293", |
| 1888 | // "instrument_name": "BTC-PERP", |
| 1889 | // "direction": "buy", |
| 1890 | // "label": "", |
| 1891 | // "quote_id": null, |
| 1892 | // "creation_timestamp": 1737467576257, |
| 1893 | // "last_update_timestamp": 1737467576257, |
| 1894 | // "limit_price": "10000", |
| 1895 | // "amount": "0.01", |
| 1896 | // "filled_amount": "0", |
| 1897 | // "average_price": "0", |
| 1898 | // "order_fee": "0", |
| 1899 | // "order_type": "limit", |
| 1900 | // "time_in_force": "gtc", |
| 1901 | // "order_status": "open", |
| 1902 | // "max_fee": "210", |
| 1903 | // "signature_expiry_sec": 1737468175989, |
| 1904 | // "nonce": 1737467575989, |
| 1905 | // "signer": "0x30CB7B06AdD6749BbE146A6827502B8f2a79269A", |
| 1906 | // "signature": "0xd1ca49df1fa06bd805bb59b132ff6c0de29bf973a3e01705abe0a01cc956e4945ed9eb99ab68f3df4c037908113cac5a5bfc3a954a0b7103cdab285962fa6a51c", |
| 1907 | // "cancel_reason": "", |
| 1908 | // "mmp": false, |
| 1909 | // "is_transfer": false, |
| 1910 | // "replaced_order_id": null, |
| 1911 | // "trigger_type": null, |
| 1912 | // "trigger_price_type": null, |
| 1913 | // "trigger_price": null, |
| 1914 | // "trigger_reject_message": null |
| 1915 | // } |
| 1916 | let order = this.safeDict (rawOrder, 'data'); |
| 1917 | if (order === undefined) { |
| 1918 | order = rawOrder; |
| 1919 | } |
| 1920 | const timestamp = this.safeInteger2 (rawOrder, 'creation_timestamp', 'nonce'); |
| 1921 | const orderId = this.safeString (order, 'order_id'); |
no test coverage detected