Documentation
¶
Index ¶
- func ChangeUsdcBalance(subaccount satypes.Subaccount, deltaQuantums int64) satypes.Subaccount
- func CreateSingleAssetPosition(assetId uint32, quoteBalance *big.Int) *satypes.AssetPosition
- func CreateSinglePerpetualPosition(perpetualId uint32, quantums *big.Int, fundingIndex *big.Int, ...) *satypes.PerpetualPosition
- func CreateUsdcAssetPositions(quoteBalance *big.Int) []*satypes.AssetPosition
- func CreateUsdcAssetUpdates(deltaQuoteBalance *big.Int) []satypes.AssetUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeUsdcBalance ¶
func ChangeUsdcBalance(subaccount satypes.Subaccount, deltaQuantums int64) satypes.Subaccount
Creates a copy of a subaccount and changes the USDC asset position size of the subaccount by the passed in delta.
func CreateSingleAssetPosition ¶
func CreateSingleAssetPosition( assetId uint32, quoteBalance *big.Int, ) *satypes.AssetPosition
func CreateUsdcAssetPositions ¶
func CreateUsdcAssetPositions( quoteBalance *big.Int, ) []*satypes.AssetPosition
func CreateUsdcAssetUpdates ¶
func CreateUsdcAssetUpdates( deltaQuoteBalance *big.Int, ) []satypes.AssetUpdate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.