Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubgraphClient ¶
type SubgraphClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(subgraphURL string) *SubgraphClient
func (*SubgraphClient) GetAllPositions ¶
func (c *SubgraphClient) GetAllPositions(ctx context.Context, deliveryAt time.Time) ([]contracts.FuturesContract, error)
func (*SubgraphClient) GetPositionsBySeller ¶
func (c *SubgraphClient) GetPositionsBySeller(ctx context.Context, sellerAddr common.Address, deliveryAt time.Time) ([]contracts.FuturesContract, error)
Click to show internal directories.
Click to hide internal directories.