Extract grid swap to API