In the home screen:
In the lock screen:
You can also add the widget on Mac
- Download the Scriptable GMX.scriptable or send it to your iPhone in any messaging app
- Open a share sheet (Activity View) and select Scriptable app. If there is no such option, try scolling to the right and tap on "more".
- Tap on "Add to My Scripts"
- Apple docs for iOS home screen widgets
- Apple docs for iOS lock screen widgets
- Apple docs for Mac desktop and notification center widgets
- After adding a bare Scriptable widget. Edit it.
- In "Script" section, select "Scriptable GMX"
- (Optional) In "When Interacting" section, select "Open URL" and set
https://metamask.app.link/dapp/https://app.gmx.io/#/trade/long
. - In "Parameter" section, set your account address
0x1234...4567
.
- The refresh rate is controlled by iOS. So it is usually lagging behind the actual positions by minutes.
To speed up the development, link the script file from iCloud Scriptable folder to the one on your computer by running:
npm run link
# or
ln -s ~/Library/Mobile\\ Documents/iCloud~dk~simonbs~Scriptable/Documents/Scriptable\\ GMX.js index-linked.js
This should create an index-linked.js
file in the root of the project where you can edit the script. Changes to this file will update the script in real time and you can reran the script on iOS by just refreshing the widget after a few seconds.
To export scriptable object (.scriptable
file), run:
npm run export
You can then send the Scriptable GMX.scriptable
file to your iPhone in any messaging app.