Libraryless. Click here for Pure Java version (35L/1K).
sS trading_directionToPositionType(double direction) { ret direction == 0 ? null : direction > 0 ? "long" : "short"; }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036198 |
| Snippet name: | trading_directionToPositionType |
| Eternal ID of this version: | #1036198/1 |
| Text MD5: | 42b9e5cd46ebaec4e27a0b3c2e66d2d0 |
| Transpilation MD5: | af4db90fb7993672a701ef643c61a072 |
| Author: | stefan |
| Category: | javax / trading |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-10-17 00:28:15 |
| Source code size: | 132 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 668 / 824 |
| Referenced in: | [show references] |